Welcome to WebmasterWorld Guest from 54.163.25.166

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

What's this code for?

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

Junior Member

5+ Year Member

joined:Jan 11, 2007
posts:97
votes: 0


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)

Junior Member

10+ Year Member

joined:Oct 15, 2005
posts:79
votes: 0


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)

Junior Member

5+ Year Member

joined:Jan 11, 2007
posts:97
votes: 0


Thanks a lot :)