Forum Moderators: phranque

Message Too Old, No Replies

Need help in https/http redirect.

         

asher02

1:08 pm on Apr 11, 2008 (gmt 0)

10+ Year Member



Hi

I'm trying to serve different robots.txt files for HTTPS & HTTP

I'm using:

RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
rewriterule ^robots\.txt$ robots_ssl.txt

When calling http:// ....../robots.txt I get 500 error.
When calling [..........] its working and the "robots_ssl.txt" file is served.

Not sure why this is happening, maybe the syntax is wrong as my server use Apache/1.3.6 ?

Any help will be appreciated.

jdMorgan

3:16 am on Apr 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If your robots_ssl.txt is being served, then the rule is working fine. It is the case when then rule is not applied that fails. So look at your server error log to find the reason it gives for the 500-Server error.

Jim