The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
URL Redirect
Hey everyone,
I want to redirect an old url that contains this: https://###########/showthread.php/#############.html to https://###########/showthread.php?t=############## A simple 301 redirect which is what I would like to use will not work.. Redirect 301 /showthread.php/#############.html https://###########/showthread.php?t=############## Thanks I cannot figure out why this redirect isn't working. I will have to use a rewrite rule instead.. |
#2
|
|||
|
|||
Try this:
HTML Code:
RedirectMatch 301 ^showthread.php/(.*).html$ showthread.php?t=$1 |
#3
|
||||
|
||||
Hey Dave, Thanks much my friend!
I actually got that working with the 301 Redirect. I just needed to add another RewriteEngine On The next and last issue is to redirect a thread that no longer exists to a new thread.. Like this.. /showthread.php?t=11929 to https://###############/showthread.php?t=220860 301 will not work and the following wouldn't work.. RewriteEngine On RewriteCond %{HTTP_HOST} ^$ RewriteCond %{QUERY_STRING} (^|&)t=11929($|&) RewriteRule ^showthread\.php$ https://###########/showthread.php?t=220860&%{QUERY_STRING} |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|