I am reorganizing the link structure of a dynamic php-based site of mine. What I am trying to obtain is:
- redirect old links onto new ones;
- create new RewriteRules for new links, since every 'link' to an html page is mapped onto a php page with parameters.
The only .htaccess file is contained in the website root folder. There are no other .htaccess files in subfolders.
Till today I had no problems in reorganizing links by modifying the rules in .htaccess. Since yesterday I have been experiencing a strange problem: it looks like modifications to the .htaccess file are not immediately read by the Apache web-server, that keeps applying the old rules even if they are no longer contained in the .htaccess file. For example, I have a rule that performs the following mapping:
/cat-a/subcat-b/page.html -> /file.php?cat=cat-a&subcat=subcat-b
If I modify that rule as follows:
/cat-a/subcat-b/page.html -> /file.php?XXcatXX=cat-a&subcat=subcat-b
Apache keeps rewriting URLs according to the old (cat=cat...) format for a while. The new format (XXcatXX=...) is used only after a random lapse of time. Random meaning that I could not find any pattern in the way it behaves.
Furthermore, if I delete a rule, Apache keeps using the deleted rule for a while.
The only regularity I have found concerns new rewrite rules: Apache reads them immediately and starts using them. If I delete a rule or modify an existing one, Apache ignores the changes for a while.
I am noticing this problem only on RewriteRule instructions and not on redirections. Since redirections and rewritings are managed by different modules, I assume that I have to modify some settings in the mod_rewrite configuration.
I made some searches but was not able to find any information/documentation on this behaviour. May be there is something that I ignore and I am missing.
Are there some settings I have to worry about? Have you ever experienced a similar problem?
I am using XAMPP on a Mac OS SnowLeopard machine.
Thanks. Regards. A.