Forum Moderators: phranque
I would like to 301 redirect all incoming traffic to the old forum to the new structure.
For example it would be:
[domain.com...] -> [domain.com...]
[domain.com...] -> [domain.com...]
The blah and meh are subforum names made to look like directories using vbSEO.
Basically I just need /forum/ stuck in between the links. I do not mind having to go through and manually add all the subforums such as meh and blah (theres about 20 of them), because not doing so I assume would ruin future directories (say I add /blog/ I dont want it automatically redirect to /forum/blog/). But the thread, and showforum, and memberprofile, post, etc files would need to be wildcarded.
Hoping someone here can help me.
The point I made there (repeatedly, and which was completely overlooked), was that just because you have moved files around on the server, you don't have to change the URLs that users see and use.
Changing URLs can lead to ranking and traffic losses.
Would you like to keep the same URLs for your users?
If you insist on forcing search engines and your users to see new URLs, then you need a 301 redirect for that; examples of which are posted several times per day in this forum.
We can advise you on your code; there's not enough volunteers to provide a free code-writing service here.
example.com/blah/thread223424.php -> example.com/forum/blah/thread223424.php
example.com/meh/post1234.php -> example.com/forum/meh/post1234.php
RewriteRule ^((blah¦meh¦foo)/.*)$ http://example.com/forum/$1 [R=301,L]
Replace the broken pipe "¦" characters with solid pipe characters before use; Posting on this forum modifies the pipe characters.
Jim