.htaccess - htaccess: Why doesn't this work? -
I get a 404 error page when trying the following rule in htaccess:
RewriteRule ^ test \? Service = (. *) Test.php? Foo = $ 1 [nc, l]
How did it come?
I know that it is better to use it instead, ^ test /(.*) test.php? Instead of Foo = $ 1 [nc, l] , but in this case I would love the way I said it.
Thank you in advance.
checks only but before the query (first ?
before #
section) is not part of the URL path. It can be checked with:
rewrite% {QUERY_STRING} ^ service = (. *) Rewrite ^ test $ test.php? Foo =% 1 [NC, L]
Comments
Post a Comment