Anyone any idea why I can't get my .htaccess code fully functional?
the redirect www. and /index.html parts work redirecting to my none www. and away from the /html off my home page but I cannot get the code to remove the .html from any other pages to work.
My full code is lower down but the part that doesn't work is this!
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
My full code with the above included!!!:
RewriteBase /
RewriteEngine On
RewriteCond %{HTTP_HOST} ^
www.competitionprizeweb.comyr.com [NC]
RewriteRule ^(.*)$ http://competitionprizeweb.comyr.com/$1 [R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^competitionprizeweb.comyr.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.competitionprizeweb.comyr.com$
RewriteRule ^index.html$
http://competitionprizeweb.comyr.com/ [R=301,L]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
php_value auto_append_file none
ErrorDocument 404 /error-page.html
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5