Can't access to my Magmi subfolder in my Magento folder

自作多情 提交于 2019-12-11 02:06:23

问题


I useing Magmi to import/export products, but when I visit my Magmi subfolder (www.mysite.com/magmi/web/magmi.php) is allways redirect me to my homepage. If I rename - delete - move - turn off the magento main folder .htaccess file I can access to my Magmi subfolder. Can somebody help me please how I can visit the Magmi subfolder without turning of the main .htaccess file?


回答1:


Inside your Magento's .htaccess just after RewriteBase line add this rule:

RewriteRule ^magmi/ - [L,NC]

This will skip Magento's rewrite handling for /magmi/ URIs.




回答2:


Add this to your .htaccess file in the magmi folder:

ErrorDocument 401 "Unauthorized Access"

This way, the browser will ask for a user/password, instead of 404'ing. (See https://serverfault.com/questions/55323/disable-mod-rewrite-for-subdirectory)




回答3:


in my case, the magmi folder had the wrong permissions. Try setting 755 permission on magmi folder and subfolders



来源:https://stackoverflow.com/questions/16019437/cant-access-to-my-magmi-subfolder-in-my-magento-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!