Hello!
When writing the rules in .htaccess, I encountered the following problem:
.Htaccess code:
RewriteEngine On RewriteBase / RewriteRule ^article/(.*).html index.php\?arg=$1 RewriteRule does not rewrite the request if the article.php file exists in the root.
If I, for example, rename the article.php file to article1.php, the rule starts working.
That is, the problem is that the file that falls under the RewriteRule pattern is in the root. This moment I found the method of scientific spear.
And here weird. Under the template only part of the file name falls, the one before .php.
Why does the rule stop working? How can I get around this problem?