I have a .htaccess file with the following rules
now on localhost, this url (http://localhost/cp/landscape/) is able to be processed by the cp.php file but when I try this on the live server, this fails and the Apache server attempts to look for the index.php file in the landscape directory instead....Code:RewriteEngine on RewriteRule ^$/index.php [L] RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ /$1/index.php [L] RewriteRule ^([a-zA-Z0-9\-\_/]*)\.(html|htm)$ /$1.php [L] RewriteRule ^([a-zA-Z0-9\-\_/]*)$ /$1.php [L]
After some head scratching, i found out that this url (http://www.liveserver.com/cp.php/landscape/) works.... how come? does it has something to do with the Apache config??









Bookmarks