therealwesfoster Posted August 14, 2008 Share Posted August 14, 2008 I'm wanting users that go to http://www.SITE.com to be redirected to http://SITE.com (without the www.) How can this be achieved? Wes Quote Link to comment https://forums.phpfreaks.com/topic/119685-solved-simple-rewrite-question/ Share on other sites More sharing options...
Tandem Posted August 16, 2008 Share Posted August 16, 2008 RewriteEngine On RewriteCond %{HTTP_HOST} ^www RewriteRule (.*) http://site.com/$1 [R=301] Quote Link to comment https://forums.phpfreaks.com/topic/119685-solved-simple-rewrite-question/#findComment-617863 Share on other sites More sharing options...
therealwesfoster Posted August 16, 2008 Author Share Posted August 16, 2008 Mucho appreciado my friend Wes Quote Link to comment https://forums.phpfreaks.com/topic/119685-solved-simple-rewrite-question/#findComment-617975 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.