The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: Rewriting https to http
Author: Dan 
Date:   30-07-07 13:27

niewczyk wrote:

> Dan,
>
> Thanks for your reply. I do indeed appreciate your time and
> suggestions. I tried the "Redirect permanent" statement you
> suggested. However, server complained that"
>
> "Starting httpd: Syntax error on line 31 of
> /etc/httpd/conf.d/httpd.conf:
> URL to redirect to is missing
> [FAILED]"

It appears you are not using FreeBSD there....

> So then I added the "/" then "/index" for the directory to look
> for.
>
> Redirect permanent / http://www.mysite.org/
> Redirect permanent /index http://www.mysite.org/

I expected to see https there, not http.

> The results were that index page never loaded.
>
> Also, according to the initial artice I read on
> http://www.freebsddiary.org/
> wouldn't the Redirect permanent be a major peformance hit?

I guess you have to define major....

AFAIK, you don't want any traffic on http. You want it all on https. Correct?

> The website I work on is a heavy traffic site.
>
> Redirects vs rewrites
> When should you use a redirect? When should you use a rewrite?
> If the file is on the same website, you should use a rewrite.
> If the file is on another server, you should use a redirect.
> Why? A simple answer is bandwidth. A redirect sends the new
> URL back to the client and the client must reissue the URL
> request, which creates more traffic. With a rewrite, the
> original request is satisfied and a new URL is returned along
> with the new file. The client does not have to reissue
> anything.

https is another website. It is not the same website as http.

--
Webmaster

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Rewriting https to http   new
niewczyk 27-07-07 21:48 
 Re: Rewriting https to http   new
Dan 28-07-07 14:52 
 Re: Rewriting https to http   new
niewczyk 30-07-07 13:18 
 Re: Rewriting https to http   new
Dan 30-07-07 13:27 
 Re: Rewriting https to http   new
niewczyk 30-07-07 14:13 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org