Have the following mod_rewrite rule:
<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME}\.php -f
 RewriteRule ^(.*)$ $1.php
 RewriteRule ^index\.php$ / [R=301,L]
</IfModule>
Which strips .php from any of my urls.
However, if I try to specify a 301 redirect to a page that already exists as such:
<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME}\.php -f
 RewriteRule ^(.*)$ $1.php
 RewriteRule ^index\.php$ / [R=301,L]
 RewriteRule ^something-page\.php$ /something-page [R=301,L]
</IfModule>
The server can't resolve the domain.
I'm thinking I have seem to have put myself into a recursive loop.
Any help much appreciated!