Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Feb 2022, 10:31
postcd postcd is offline
 
Join Date: Feb 2012
Apache rewrite rule to redirect VBSEO to showthread.php?1234-Thread-Title ?

Hello,

in vB options i have defined Basic Friendly URLs:
showthread.php?1234-Thread-Title

before i had these URLs:
forum-name/1234-Thread-Title

this .htaccess rewrite rule worked to redirect old to new:
RewriteEngine on
RewriteRule [^/]+/([0-9]+)-[^/]+ /showthread.php?t=$1 [L,R=301]

but it means forum is doing additional redirect (showthread.php?t=1234 -> showthread.php?t=1234-Thread-Title)

If anyone knows how to fix that rewrite rule/s, please kindly comment. Thank you
Reply With Quote
  #2  
Old 30 Jun 2022, 09:57
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Sometimes I'm rather fashionably late, but this reply may help others moving forward:
https://web.archive.org/web/20130122...all-vbseo-238/
__________________
Daddy Does Dios and Figs!

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
Reply


Tags
htaccess, rewrite


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 02:32.

Layout Options | Width: Wide Color: