Revision: 7094
Updated Code
at October 31, 2008 12:47 by section31
Updated Code
# 1. force removal of www IN URL RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] # END force removal of www IN URL# force www IN URL # 2. start https check RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R,L] # end https check
Revision: 7093
Updated Code
at October 31, 2008 12:44 by section31
Updated Code
# 1. force removal of www IN URL RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com$1 [R=301,L] # END force removal of www IN URL# force www IN URL # 2. start https check RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R,L] # end https check
Revision: 7092
Updated Code
at August 22, 2008 11:53 by section31
Updated Code
# 1. force removal of www IN URL RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] # END force removal of www IN URL# force www IN URL # 2. start https check RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R,L] # end https check
Revision: 7091
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 6, 2008 00:29 by section31
Initial Code
# force removal of www IN URL RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] # END force removal of www IN URL# force www IN URL
Initial URL
Initial Description
1. Removes www using a mod rewrite condition. Put this in your .htaccess file or apache config. 2. Forces https on url.
Initial Title
Apache Config Changes
Initial Tags
Initial Language
Apache