joined:Oct 12, 2009
Having a problem at the moment running a website locally (under Ubuntu Linux 10.04) which is working fine on the live website (under CentOS).
The following redirect in the .htaccess file should redirect a call to 'www.domain.com/products/promotional_desk_plants.html' to the searchresults.php script, passing it the product as a query string:
RewriteRule ^products/promotional_(.*)\.html$ /searchresults.php?ln=$1 [NC,L]
This works fine on the live website, but when running locally on the Ubuntu box it is invoking the products.php script, which exists in the root directory, rather than following the redirect
As a test I created a script in root directory called ‘andy.php’ and if I type in ‘http://domain.local/andy/xxrubbishxx’ it calls the ‘andy.php’ script, rather than giving a ‘page not found’.
Any help on this greatly appreciated!