Get exclusive CAP network offers from top brands

View CAP Offers

Old phpBB (forum trashed) – old session ID’s wont redirect

You have affiliate marketing questions. CAP has answers!Category: Website Design and DevelopmentOld phpBB (forum trashed) – old session ID’s wont redirect
AussieDave asked 4 years ago
Hi,

I’ve tried everything from .htacess redirect 301 to other tricks but nothing works.
I have about 30 odd links which Google webmaster tools keep giving a 404 error warnings on and I need to redirect them back to the home page.

xxxhttp://www.mydomain.com/games-forum/viewforum.php?f=7&mark=topics&sid=d3f326d165a46e91547913ae3baaf2ca

Can some please show me how I can get the above plus similar links to do a permanent 301 to the home page please?

Cheers

Dave

16 Answers
allfreechips answered 4 years ago
what part of the url is “bad”

is f=7 ok?
or is the sid failing the url? as sid should not break the url

AussieDave answered 4 years ago
Everything from /games-forum/ is non existent, in fact the folder no longer exists either.

But trying to do a redirect from the folder “/games-forum/” to the domain root doesn’t even stop the above URL issuing a 404 page not found. I’m pulling my hair out here.

Everything from “?f=7&mark=topics&sid=d3f326d165a46e91547913ae3baaf2ca” doesn’t redirect to home page.

using redirect 301 from /games-forum/viewforum.php xxhttp://www.mydomain.com/

works.

allfreechips answered 4 years ago
ok, are ou using a .htaccess redirect or did you create a redirect in place of the physical file?

/games-forum/viewforum.php

AussieDave answered 4 years ago
Used the .htaccess

EG – redirect 301 /games-forum/viewforum.php yyhttp://www.mydomain.com/

Worked fine but I want to redirect everything from /games-forum/ and recursively below that folder, to yyhttp://www.mydomain.com/

allfreechips answered 4 years ago
try somthing like this

rewriterule ^/games-fourm/(.*)$ http://www.newsite.com/ [r=301,nc]

AussieDave answered 4 years ago
Thanks!

Cleared cache etc etc, even tried it on FF, IE and Opera and sorry to say it didn’t work. <span title=” title=”” class=”bbcode_smiley” />

Any other idea? It’s on a VPS so I have a lot greater flexibility than shared hosting <span title=” title=”” class=”bbcode_smiley” />

allfreechips answered 4 years ago
rewriterule ^/games-fourm/(*)$ http://www.newsite.com/ [r=301,nc]

try without the period..

Arjun answered 4 years ago
Is there a typo in that rewrite rule^ should it be:

^/games-forum/(*)$ http://www.newsite.com/ [r=301,nc]

allfreechips answered 4 years ago
wouldnt think so, im trying to do this off top of my head, i should look into it, you have rewrite rules enabled correct?

AussieDave answered 4 years ago
@allfreechips 246486 wrote:

you have rewrite rules enabled correct?

Yes, have used rewrites to succefully redirect old pages to new and all works fine.

Have tried Arjun’s example and sad to say it produced a 500 error.