vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help with a 301 rdirect (https://vborg.vbsupport.ru/showthread.php?t=233835)

birdie 01-22-2010 08:22 AM

Help with a 301 rdirect
 
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?

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

Quote:

Originally Posted by ChopSuey (Post 1963201)
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

Quote:

Originally Posted by ChopSuey (Post 1963201)
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.


All times are GMT. The time now is 08:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01624 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete