| ![]() | Join Date: Oct 2007 | Posts: 31 | Location: Texas | iTrader: (0) |
301 Redirect
I'm trying to setup a 301 redirect for my forums so that when a user types in it will take them to the subdomain . I've tried two different methods and neither one seem to work, so I assume I'm doing something wrong.
Method #1
Method #2
Should I be using the code to redirect to a non www version of the site? If so, how would the below look?
I'm not really sure what I'm doing wrong. I'm editing the .htaccess file in my forums directory.
Bueller? Bueller?
Code:
http://www.worldancestry.org/forums
Code:
http://forums.worldancestry.org
Method #1
Code:
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://forums.worldancestry.org/$1 [R=301,L]
Code:
Redirect 301 / http://forums.worldancestry.org/
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^example.com
RewriteRule (.*) http://example.com/$1 [R=301,L] Bueller? Bueller?
Last edited by lazserus; 11-18-2007 at 12:08 PM.. Reason: Automerged Doublepost






Linear Mode

