Answer the question
In order to leave comments, you need to log in
Mod_rewrite and file not exist?
Error.log periodically contains entries like this:
File does not exist: /*server_path*/*domain*/tags, referer: http://*domain*/tags/*tag*/
RewriteRule ^tags$ /$0/ [L,R=301]
RewriteRule ^tags/$ /tags.php [L]
Answer the question
In order to leave comments, you need to log in
And without the L modifier in the first RewriteRule will work? In theory, L stops the processing of rules, and you need the second one right away
Maybe some urls do not fall under the rules, you can test the config here martinmelin.se/rewrite-rule-tester/ , entering these same referers, and see if there is one for which no rule will be executed
I want to add that I once had a case when I spent 3 hours on a problem with mod_rewrite: the rule did not work, and then it turned out that there was another rule above it that worked before. Even for this, I downloaded a regular expression tester. Those. I was looking for the error in the wrong place. :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question