Hey. I would be very grateful if someone could help me with the following; I have a series of PHP files which I would like accessible as .html (e.g. index.html actually points to index.php). However, when trying to view fckeditor.html file, it's looking for fckeditor.php (and presents a "300 multiple choices" Bullcrap). Until switching to 1and1.co.uk hosting, it worked fine. Here is the .htaccess:
The line causing the trouble is:
UPDATE: I think it may instead be the line:
..not working. Surely, if the file doesn't exist, THEN do the rewrite. No?
Many thanks
Code:
ErrorDocument 404 /404-page-not-found.html
#AddType application/x-httpd-php .php .php3 .phtml .html
AddType x-mapp-php4 .html
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*).html /$1.php [QSA,L]
The line causing the trouble is:
Code:
RewriteRule (.*).html /$1.php [QSA,L]
UPDATE: I think it may instead be the line:
Code:
RewriteCond %{SCRIPT_FILENAME} !-f
Many thanks
Last edited:





