cancel
Showing results for 
Search instead for 
Did you mean: 

My .htaccess file is casing me problems, what's wrong with it ?

royt
Hooked
Posts: 9
Thanks: 3
Fixes: 1
Registered: ‎25-02-2008

My .htaccess file is casing me problems, what's wrong with it ?

My .htaccess file use to work ok but is now causing 500 error message page.
Could someone kindly tell me if they can see anything wrong with it or has something changed in plusnet web hosting to now cause me problems.
The file has the following:-
Order deny,allow
<Files .htaccess>
order allow,deny
deny from all
</Files>
ExpiresActive on
ExpiresDefault A31536000
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Wget [OR]
RewriteCond %{HTTP_USER_AGENT} CherryPickerSE [OR]
RewriteCond %{HTTP_USER_AGENT} CherryPickerElite [OR]
RewriteCond %{HTTP_USER_AGENT} EmailCollector [OR]
RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ExtractorPro
RewriteRule ^.*$ deny.htm
ErrorDocument 301 http://mywebsite.co.uk/errors/error.htm
ErrorDocument 400 http://mywebsite.co.uk/errors/error.htm
ErrorDocument 403 http://mywebsite.co.uk/errors/forbidden.htm
ErrorDocument 404 http://mywebsite.co.uk/errors/error.htm
IndexIgnore *
Appreciate any help given
Regards Roy
4 REPLIES 4
Peter_Vaughan
Community Veteran
Posts: 14,469
Registered: ‎30-07-2007

Re: My .htaccess file is casing me problems, what's wrong with it ?

Have you tried without the Expires lines. This is not a common option used and may not be permitted on Plusnets web servers.
royt
Hooked
Posts: 9
Thanks: 3
Fixes: 1
Registered: ‎25-02-2008

Re: My .htaccess file is casing me problems, what's wrong with it ?

Quote from: Peter
Have you tried without the Expires lines. This is not a common option used and may not be permitted on Plusnets web servers.

Thank you very much for your quick reply.
I have just taken out the 2 Expires line and I can now see my web pages again  Smiley .
That's saved me a lot of trouble experimenting with various bits of the file
Regards roy
spraxyt
Superuser
Superuser
Posts: 10,063
Thanks: 1,370
Fixes: 75
Registered: ‎06-04-2007

Re: My .htaccess file is casing me problems, what's wrong with it ?

I'm surprised it works with the IndexIgnore line present; I thought that was disallowed, and it is set in the configuration so isn't needed.
David
royt
Hooked
Posts: 9
Thanks: 3
Fixes: 1
Registered: ‎25-02-2008

Re: My .htaccess file is casing me problems, what's wrong with it ?

Thanks Spraxyt for your reply.
Things seemed to be working with the IndexIgnore file in place but after your comment I did some more reading on the forum I thought it best to take it out. This meant you could then see inside my folders so I then set about reseting the file permissions.
Most of my web pages are htm files. My file permission are now set to:-
Folders - 0711
Files - 0644
Things seem to be working as I want them to.
Thanks for your help
Regards Roy
dick:quote