Forum Moderators: phranque
i am using the exact same mod_rewrite code i used on apache 1.3.29 on our new apache 2 server but it's not working as it should.
i have set options and allowoverride to all, and a simple redirect:
RewriteRule music.htm music2.htm [L]
works fine.
however when i try to redirect all non-existing files (code which works perfectly on apache 1.3.29) to my html.php script to generate the page:
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME}/index.html !-s
RewriteCond %{REQUEST_URI} !html\.php
RewriteRule ^(.*)$ html.php/$1 [L]
it returns a File does not exist: /var/www/sites/mydomain.com/html.php/music.htm
does anyone have any clues as to why that might be? much appreciated!
yes all working. it is a dedicated server which i set up myself, and as mentioned above a simple mod_rewrite works fine
so i know mod_rewrite is working,
i know php is working
i know my scripts are working because i made the whole site on my dev box (lamp - apache 1.3.9) before uploading.
could it be a permissions thing?
RewriteRule htmp.php/(+*) html.php?page=$1