I need make this redirect to my webserver:
www.hostname.com/path1/path2/123456789
to www.hostname.com/search?q=123456789
I have inserted this rule to htaccess file:
RewriteRule ^/path1/path2/([0-9]+)$ /search?q=$1 [L,R=301]
but is doesn't work (the number is a variable).
Asked by Steph
(657 rep)
Mar 12, 2015, 03:41 PM
Last activity: Jul 1, 2016, 11:36 AM
Last activity: Jul 1, 2016, 11:36 AM