The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
htaccess redirect question (FIXED)
Not sure what I'm doing wrong here, I did a test run a few months ago and everything went pretty good, but now, I'm just stuck at the .htaccess file since I can't remember where I got the code to use to redirect how I need it to.
Basically, I just my forums from www.mysite.com/forum/ to www.mysite.com/forums.php with my homepage at index.php. Now, I just need to redirect all the old url's from when everything was at mysite.com/forum to the new url mysite.com/forums.php This is how I currently have my .htaccess file but it doesn't work (at least the second bit doesn't) Code:
RewriteEngine On rewritecond %{http_host} ^usmilitarylife.com rewriteRule ^(.*) http://www.usmilitarylife.com/$1 [R=301,L] RewriteEngine on RewriteCond %{REQUEST_URI} ^/forum/.*$ RewriteRule ^/forum/(.+)$ http://www.usmilitarylife.com/$1 [L,R] Thanks in advance --------------- Added [DATE]1251949323[/DATE] at [TIME]1251949323[/TIME] --------------- Ok, got it fixed by adding a .htaccess file to the forum directory with these contents... Code:
redirect 301 /forum http://www.usmilitarylife.com |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|