Welcome to WebmasterWorld Guest from

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


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)

10+ 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.



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

5+ Year Member

Thanks a lot :)

Featured Threads

Hot Threads This Week

Hot Threads This Month