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
is f=7 ok?
or is the sid failing the url? as sid should not break the url
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.
/games-forum/viewforum.php
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/
rewriterule ^/games-fourm/(.*)$ http://www.newsite.com/ [r=301,nc]
Cleared cache etc etc, even tried it on FF, IE and Opera and sorry to say it didn’t work. ” title=”” class=”bbcode_smiley” />
Any other idea? It’s on a VPS so I have a lot greater flexibility than shared hosting ” title=”” class=”bbcode_smiley” />
try without the period..
^/games-forum/(*)$ http://www.newsite.com/ [r=301,nc]
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.
Please login or Register to submit your answer