Welcome to WebmasterWorld Guest from 23.22.79.235

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

What's this code for?

   
7:20 am on Aug 24, 2007 (gmt 0)

5+ Year Member



Hello,

I found this code in the htaccess of one of my client's sites.

RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ [domain.com...] [R=301,L]

Can anyone explain what's this code for? There are separate codes in the htaccess for redirecting non-www to www and from /index.htm to / so it's not something used for such redirects.

Thanks a lot!

7:35 am on Aug 24, 2007 (gmt 0)

5+ Year Member



https uses port 443 vs port 80 for standard http

With that code anything requested with https will be redirected to the same page with an http connection.

William.

7:39 am on Aug 24, 2007 (gmt 0)

5+ Year Member



Thanks a lot :)