Free Web Hosting Forum
(#1 (permalink))
Old
Member
parklife63 is on a distinguished road
 
Posts: 44
Join Date: Jan 2011
Default Part working .htaccess - 08-14-2012, 08:23 AM

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
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com