Hi, i am going crazy
trying to solve this problem. I have following in my simplified .htaccess:
As you might guess the goal is to process any hxxp://example.com/*keyword* url with test.php script taking *keyword* as a parameter.
This works perfectly UNLESS there is a directory called *keyword*. Then the RewriteRule is being ignored and execution goes directly into *keyword* directory.
Any ideas how to fix this rewrite? (without removing/renaming *keyword* directory)
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !test.php
RewriteRule ^(.+)$ /test.php?param=$1
As you might guess the goal is to process any hxxp://example.com/*keyword* url with test.php script taking *keyword* as a parameter.
This works perfectly UNLESS there is a directory called *keyword*. Then the RewriteRule is being ignored and execution goes directly into *keyword* directory.
Any ideas how to fix this rewrite? (without removing/renaming *keyword* directory)
Last edited: