Return to Snippet

Revision: 64878
at September 29, 2013 04:49 by graceman9


Updated Code
# redirect all users to access the site WITHOUT the 'www.' prefix
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

Revision: 64877
at September 29, 2013 04:47 by graceman9


Initial Code
# redirect all users to access the site WITHOUT the 'www.' prefix
RewriteCond %{HTTP_HOST} ^www\.example.com\.ua$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

Initial URL

                                

Initial Description
Redirect all users to access the site WITHOUT the 'www.' prefix

Initial Title
Redirect all users to access the site WITHOUT the \'www.\' prefix

Initial Tags
htaccess

Initial Language
Apache