Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my htaccess file, i am using below lines

Options All -Indexes
Errordocument 403 http://article-stack.com/
ErrorDocument 401 http://article-stack.com/
ErrorDocument 403 http://article-stack.com/
ErrorDocument 404 http://article-stack.com/
ErrorDocument 500 http://article-stack.com/

<files .htaccess>
order allow,deny
deny from all
Satisfy All

If I access some PHP inside my theme folder then it is working perfectly. But a php file in plugins folder with same permission is not accessible as i think so. Because my plugin on one article is not able to display images. When i copy the path of image and put it into browser directly, it is redirecting me to 404 page. If i run the same script from my theme folder then it is working perfectly.

It is also working fine from localhost even from plugins folder. There must be some problem with htaccess file only. But not able to guess what.

share|improve this question
Your wording of the directory structure is a little confusing. Would you please update your question with a more specific directory structure and which HTTP error codes are returning for which files in that structure? – Mufasa Jun 23 '11 at 21:35
You shouldn't send users to your home page when a page isn't found or an error occurs. That's really darn confusing to users. Make custom pages for each error that explains what happened and what they should do. That's much better usability. – John Conde Dec 3 '11 at 14:58

Check to make sure you only have the one .htaccess file, sounds like your plugin directory might be being controlled by another .htaccess file.

share|improve this answer
up vote 0 down vote accepted

Well! the issue has been resolved. I was using capital "T" in url while accessing the path. Somehow I noticed it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.