Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
My .htaccess file is casing me problems, what's wrong with it ?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- My .htaccess file is casing me problems, what's wr...
My .htaccess file is casing me problems, what's wrong with it ?
27-03-2011 10:44 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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
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
Message 1 of 5
(1,169 Views)
4 REPLIES 4
Re: My .htaccess file is casing me problems, what's wrong with it ?
27-03-2011 11:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Have you tried without the Expires lines. This is not a common option used and may not be permitted on Plusnets web servers.
Message 2 of 5
(493 Views)
Re: My .htaccess file is casing me problems, what's wrong with it ?
27-03-2011 11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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

That's saved me a lot of trouble experimenting with various bits of the file
Regards roy
Message 3 of 5
(493 Views)
Re: My .htaccess file is casing me problems, what's wrong with it ?
27-03-2011 11:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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
Message 4 of 5
(493 Views)
Re: My .htaccess file is casing me problems, what's wrong with it ?
30-03-2011 10:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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
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
Message 5 of 5
(493 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- My .htaccess file is casing me problems, what's wr...