We’re in the process of moving a site from a Media Temple (gs) to a vps.net server. The site is now working on the new server, but for some reason the .htaccess file is no longer removing the index.php, which means that links are broken.
mod_rewrite is installed on the server (see http://workisprogress.co.uk/info.php).
I’m using the File and Directory Check method, with the following code in the .htaccess file:
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]Although I’ve also tried:
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]Any ideas what I’m doing wrong?
Thanks!