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: niewczyk 
Date:   30-07-07 13:18

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]"

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/

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?

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.

 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