View Single Post
  #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