htaccess question
I've got my vanilla installed in a subdirectory (/social) and successfully got my htaccess redirecting any traffic from ukmusic.com to ukmusic.com/social.
NEW FORUM www.ukmusic.com/social
OLD FORUM www.ukmusic.com/forum
What I also need to do is divert all the traffic from my old forum to vanilla, so divert traffic from www.ukmusic.com/forum (OLD VBULLETIN FORUM NOW GONE BUT STILL LISTED IN GOOGLE) to the new forum www.ukmusic.com/social. I've managed to do this with htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^$ /social [L]
Redirect 301 /forum http://www.ukmusic.com
However here is my question, how can I get any deeper links for example www.ukmusic.com/forum/anything to redirect, as my current htaccess only does the specific www.ukmusic.com/forum and not another of that /forum's content.
for example https://www.google.co.uk/#q=site:www.ukmusic.com/forum I have over 170'000 listing in google and need to know whats the best way to do this.
PLEASE HELP ! any help appreciated
Comments
Maybe that will help: http://vanillaforums.org/discussion/27317/migrated-from-vbulletin-4-2-2-to-vanilla-2-1-issues-with-mod-rewrite-url
But if not, please post a link as it looked in your old forum and how it should look in your new forum.
Then call @x00 because he is the RewriteRuleRuler
get rid of
Redirectline putRewriteRule ^forum(/.*)?$ http://%{HTTP_HOST}/social$1 [L,R=301,QSA]grep is your friend.
Vanilla has some vbulletin and phpBB middleware to handle old threads
grep is your friend.
X00 that's helped, however still got this issue
OLD URL : http://ukmusic.com/forum/chit-chat/most-relaxing-songs-ever-39171.html
NOTE: chit-chat = catagory name in VBulletin
Current re-direct with htaccess after your edit
http://ukmusic.com/social/chit-chat/most-relaxing-songs-ever-39171.html
PAGE NOT FOUND
What the destination url actually is in Vanilla is :
http://ukmusic.com/social/discussion/39171/most-relaxing-songs-ever
This is for phpBB but it will give you the idea
http://vanillaforums.org/discussion/comment/217818/#Comment_217818
Homework on my desk tomorrow, show own workings!
grep is your friend.
if you are converting to vanilla. I would recommend using vanilla 2.1.5 instead of vanilla 2.0.x
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.