Log in

View Full Version : Help with a 301 rdirect


birdie
01-22-2010, 08:22 AM
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 (http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm)
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?

ChopSuey
01-22-2010, 08:38 AM
Questions about modifications need to be asked in the modification thread, not out here in the main forums.
.

Mr. Burns
01-22-2010, 04:14 PM
Questions about modifications need to be asked in the modification thread, not out here in the main forums.
.


vB3 General Discussions
(40 Viewing)
General modification & vBulletin discussions. eg. "How do I do this in vBulletin?", "Can this product do this?", "What does this feature do?", etc

birdie
01-22-2010, 05:43 PM
Questions about modifications need to be asked in the modification thread, not out here in the main forums.
.huh? What modification? I not asking about a modification.