Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 Feb 2018, 18:39
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
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..
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.


Last edited by RichieBoy67; 09 Feb 2018 at 18:53.
Reply With Quote
  #2  
Old 09 Feb 2018, 19:16
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Try this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will redirect showthread.php/*.html to showthread.php?t=*
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 09 Feb 2018, 19:54
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
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}
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
Reply


Tags
url redirect


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:56.

Layout Options | Width: Wide Color: