Hi guys,
Having a bit of trouble with my .htaccess file on Heart Internet hosting - the identical htaccess file runs no problem on the other two hosts I use plus on my local machine.
I just want to route every request that’s not for an existing file to site.php. This is what I generally use:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? site.php [L,QSA]
But on Heart Internet I get a weird message: “The requested URL /home/sites/[domain name removed]/public_html/site.php was not found on this server.”
A Google search has uncovered the following (similar mod_rewrite problems on Heart Internet):
http://www.andrewgoodricke.com/2008/07/code-igniter-mod_rewrite-on-heart-internet/
(I’m not using Code Igniter by the way, just a regular PHP web app but I doubt it matters as this is at the server level)
I’ve tried the solutions in the links but they don’t work either.
Can anyone help??
Many many thanks in advance!