The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
htaccess 301 redirect assistance
First off... I've been searching around trying to do my homework on how to do this, and I found an example, but I'm not confident I understand the coding well enough to customize it for my current domain. We moved our forum from a subdirectory (http://www.example.com/forum) to the root (http://www.example.com) and ever since we've had issues with ajax functionality on the board both with some built in features of VB and by extension those plugins that use ajax to function. Looking at my cpanel logs leads me to believe that the files/database are looking for that old directory and getting a 404 error. I wanted to see if there was an easy to understand resource that I can go by in order to set up a redirect from the old directory path to my current one and see if it fixes the issues.
Namely, how to enter the redirect properly in the htaccess file... And where to put it.... whether it should be inside the root folder (http://www.example.com) or within the (http://www.example.com/forum) directory. Unfortunately I'm suddenly needing to deal with extrememly limited experience and I want to make sure I have it right the first time since I'm fixing a live website. Any help would be greatly appreciated |
#2
|
|||
|
|||
It seems like you should be able to get things working without using a redirect (except to get existing links to point to the new forum, of course). Did you try Maintenance > General Update Tools > Rebuild Styles?
|
#3
|
|||
|
|||
If you are getting a 404 error then you need to set up a redirect for that, it will also cure any other 404's that may crop up.
any redirects should go in the .htaccess file, that way it becomes a server side demand, and it wont be noticed at all by the user. to setup a 404 redirect you only need to add one line to your .htaccess ErrorDocument 404 /index.php If your files were on the same server, you shouldn't need to do a redirect, just move all of the files out of the forum folder, into public_html, all you should need to do then is alter some settings like the the image paths in the ACP. If you must have a redirect, then add this to your .htaccess # Redirect old file path to new file path Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|