![]() |
Redirect All Non WWW To WWW?
What exactly do I put in my .htaccess to make it redirect my homepage AND my forums to WWW?
Quote:
|
Try this:
Quote:
|
It still only redirects the homepage. Do I need a second .htaccess in my /forums/ directory?
|
Called a permanent 301 redirect. Here's what you need:
RewriteEngine On RewriteCond %{HTTP_HOST} ^YourSite\.com [nc] RewriteRule (.*) http://www.YourSite.com/$1 [R=301,L] |
Do I need that .htaccess in my root and my forum? I have it in my root, but it still doesn't redirect gamerzrevolution.com/forums/.
|
Am I understanding you correctly here? The above that I posted will redirect all non www. urls on your site to www. If you need something else, then please let me know exactly what you're trying to achieve.
|
I already placed that in my .htaccess, which is inside my public_html directory. My forums are located in my public_html/forums/ directory. It only redirects gamerzrevolution.com to www.gamerzrevolution.com. It does not work on gamerzrevolution.com/forums/.
Edit: I had a previous .htaccess located inside my forums directory, which was causing it to not work. |
I've just browsed your forums and all threads have www. in the url. What's the problem?
|
Read my previous post ;)
|
All times are GMT. The time now is 10:35 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:
|