URL rewriting with "+" sign (same as Google+) .htaccess

2

I would like to write a rule in .htaccess with RewriteRule using the plus sign (+) for a url in the format similar to Google, like this:

myite.com /+anything was interpreted myite.com /?track=search or mysite.com / a site was interpreted mysite.com / apage / track / something

Thank you in advance for the help.

    
asked by anonymous 09.11.2015 / 22:41

1 answer

2
RewriteEngine on
RewriteBase /
RewriteRule ^\+(.*)$ /?track=$1 [L]
RewriteRule ^(.*)\+(.*)$ /$1?track=$2 [L]
    
09.11.2015 / 22:55