The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
.htaccess help for rewrites / redirect
Hi,
question for those that are versed in .htaccess files and redirection- I just moved my vB suite install from a folder (www.mysite.com/forums) to the root. Also, I'm using the Mod Rewrite Friendly URL option, with the vbulletin-supplied .htaccess file. 1) What's the best way to ensure external links will be able to reach the "new" location? Like for example, http://www.mysite.com/forums/threads...blah-blah-blah would automatically go to http://www.mysite.com/threads/1111-t...blah-blah-blah (same URL, just without the /forums) I tried a could of things that I found from google or whatever and just ended up getting 500 errors so figured I'd consult the experts here become continuing to experiment 2) This request isn't as important as #1, but I also recently finally totally migrated my content from an old CMS system to vBulletin's CMS, and wanted to know if there's a simple way to redirect my article links.. EX: one article was located at: http://mysite.com/index.php?option=c...-bio&Itemid=63, and the vbulletin CMS entry is at: http://www.mydomain.com/content/336-blah-blah-blah . I figured there isn't a rule that'll automatically change these URL's but I should at least be able to set up a permanent redirect for them in the .htaccess file, but messed that up also. My current .htaccess file looks like this, if it matters: Code:
RewriteEngine on <Files 403.shtml> order allow,deny allow from all </Files> deny from 12.345.678. # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory. # RewriteBase /forum/ # If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off. # Options -MultiViews RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # Forum RewriteRule ^threads/.* showthread.php [QSA] RewriteRule ^forums/.* forumdisplay.php [QSA] RewriteRule ^members/.* member.php [QSA] RewriteRule ^blogs/.* blog.php [QSA] RewriteRule ^entries/.* entry.php [QSA] RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # MVC RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA] Thanks a lot for looking at this! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|