htaccess redirect using a plus sign

731 Views Asked by At

bit.ly has it such that if you do

bit.ly/blah+ it redirects to bit.ly/info/blah

How would the htaccess code look for replicating that (using a plus sign to redirect to a related page)

1

There are 1 best solutions below

0
On

You can use this mod_rewrite code to do that:

RewriteEngine on
RewriteRule ^([^/]+)\+$ /info/$1 [L,R]