PDA

View Full Version : Moving VB Files from root to /forums


ashley55
06-25-2011, 04:27 PM
Ok, i first uploaded my forum to root and have had it like that for about 2 months.

But now im wanting to use the mod-rewrite friendly URL's but for this i need the files in /forum

Can i still do this now? i tried but got errors

i was adding this ti .htaccess


# 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]


thanks :)

see my current URLs are like:
http://pwnedgamers.com/forumdisplay.php/12-General-Discussion

and i need it like

http://pwnedgamers.com/forums/General-Discussion

ashley55
06-27-2011, 05:43 PM
no help?

socialteenz
06-28-2011, 12:45 PM
Did you set vBulletin to use "Mod Rewrite Friendly URLs"?

Admin Control Panel >> Options >> Friendly URLs >> Mod Rewrite Friendly URLs

Also move your files from your root to forums folder. make the necessary chnages in the Admin Control Panel >> Options >> Site Name / URL / Contact Details

use this .htaccess

RewriteEngine On
Options +FollowSymLinks
RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}

Rewrite credits: MattyAsia (https://www.vbulletin.com/forum/member.php/265319-MattyAsia?)

Hope this helps :)

ashley55
06-30-2011, 05:02 PM
can anyone help me quick, i moved all files into /forums folder

but now my homepage does this:

https://vborg.vbsupport.ru/external/2011/06/3.png

though if i enter /forums/forum.php it works

socialteenz
07-01-2011, 04:26 PM
Seems like you figured it out (http://pwnedgamers.com/forum.php)