homepage Welcome to WebmasterWorld Guest from 54.227.40.166
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
What's this code for?
pro_seo




msg:3430955
 7:20 am on Aug 24, 2007 (gmt 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!

 

wsmeyer




msg:3430968
 7:35 am on Aug 24, 2007 (gmt 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.

pro_seo




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

Thanks a lot :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved