I have two servers:
Fedora works with Apache / 2.2.14 (old server)
CentOs working with Apache / 2.2.3 (new server)
I have been using this Rewrite rule for quite some time with absolute success on the old server:
Redirect 301 /index.html /
But on the new server, it fails with this message [alert] [client 192.168.0.5] /home/yoursite/www/.htaccess: Redirect to non-URL
Checking the documents ... I found that the old server should not accept the rule as is and the new server should accept it. Both of them work with exactly the same file httpd.conf.
I understand how I can fix this (just redirect to the page using http: // ...) I just don’t understand why it works on the old server with the previous version of apache (where it should not have worked in the first place) and not work on the new server (where it should, in fact, work).
Has anyone experienced this?
source
share