Mobile app version of vmapp.org
Login or Join
Ogunnowo487

: Problem with htaccess causing images not to load In my htaccess file, i am using below lines Options All -Indexes Errordocument 403 http://article-stack.com/ ErrorDocument 401 http://article-stack.com/

@Ogunnowo487

Posted in: #Htaccess

In my htaccess file, i am using below lines

Options All -Indexes
Errordocument 403 article-stack.com/ ErrorDocument 401 article-stack.com/ ErrorDocument 403 article-stack.com/ ErrorDocument 404 article-stack.com/ ErrorDocument 500 article-stack.com/
<files .htaccess>
order allow,deny
deny from all
Satisfy All
</files>


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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ogunnowo487

2 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

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

10% popularity Vote Up Vote Down


 

@YK1175434

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme