Sample Header Ad - 728x90

Apache: rewrite rule with variable data

0 votes
1 answer
299 views
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