![]() |
How to redirect non-www pages to www pages ?
Hello
I want to redirect all the non-www forum url's including the main page, to www. Is there a mod/hack to do this for me ? I tried a few commands in .htaccess, the main page would be redirected but the rest the pages would give an error page. Any advice/help is appreciated. Thank You. |
I use In .htaccess
Code:
RewriteCond %{HTTP_HOST} !^www.mysitez.com$ [NC] |
Thanks but its not working for me.
Only the main page works and the non-www pages would give an error, instead of redirecting to www. |
Try this, my version is rather more complicated because it's done for multiple domains but I think this is how it started out.
Code:
RewriteEngine On |
Quote:
|
Wikipedia says this: http://en.wikipedia.org/wiki/No-www#Apache_example
|
Quote:
Code:
RewriteEngine On |
All times are GMT. The time now is 01:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|