Its a long story, but I have to redirect this page (an old zoints thread tag page):
http: // www. example- forum/tags/index.php?tag=/wrongtag
to this page:
http: // www. example- forum/tags/index.php?tag=/righttag
I have done 301 rediirects before for static urls. ...I did some reading on this and found
this tutorial
Quote:
Implementing a 301 redirect for dynamic pages
A dynamic page is one generated by a database driven application, such as blog or forum software. A file name is appended by a query string, looking something like this:
http://www.example.com/page.php?id=13
Where a query string is used, the 301 redirect solution for static pages above will not work; you'll need to use a rewrite solution. Using the page.php?id=13 example, here's what you'll need to use in your htaccess file:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=13$
RewriteRule ^/page.php$ http://www.example.com/newname.htm? [L,R=301]
In the example above the id=13 should be replaced with the query string of the page you wish to redirect and the page.php with the name of your file prior to the query string.
|
What I can not work out is what exactly I am supposed to put in the .htaccess file where the id=13$ is in the tutorial for the thread I want redirected?
Can anyone guide me?