Reputation: 1473
I deleted a forum from a subdirectory to a subdomain. The one in the subdirectory was only like 2 weeks old, but one of the pages gets a lot of hits. But, it no longer exists. It now exists in the new subdomain. Can I create a 301 redirect from the non existant page from the subdirectory to the existing duplicate page in the subdomain?
I tried:
redirect 301 /forum/viewtopic.php?f=30&t=45 http://forum.hollywoodnose.com/questions/126/alternative-ways-to-look-younger
But this doesn't work... Like I said /forum/viewtopic.php?f=30&t=45
no longer exists. But, it is the same as http://forum.hollywoodnose.com/questions/126/alternative-ways-to-look-younger
. /forum/viewtopic.php?f=30&t=45
is indexed though... How can I make this 301 redirect? Thank you
Upvotes: 0
Views: 318
Reputation: 10888
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} \bf=30\&t=45\b
RewriteRule ^forum/viewtopic.php$ \
http://forum.hollywoodnose.com/questions/126/alternative-ways-to-look-younger [R=301,L]
Upvotes: 1