.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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -