I'm getting a 403 Forbidden error on one of my Magento webshops. It is a multi-shop Magento installation. For the main/base webshop I have created a new version, so the main/base URL's had to be changed for the old version.
The old version now has a dummy/test domainname as Base URL but it is giving me a 403 Forbidden error. This is frustrating because I need to be able to access the backend to see orders and information on the other webshops wich are running on this multi-store Magento installation.
Situation:
OLD SERVER:
DOMAINS:
- main.nl <- This is replaced by test/dummy.nl which now gives a 403
- sub1.nl
- sub2.nl
NEW SERVER
DOMAINS:
- other main.nl
- main.nl (domain migrated from old server to new magento installation)
-
Still haven't found the solution is there somebody who can help?BasR– BasR2015年10月09日 09:14:21 +00:00Commented Oct 9, 2015 at 9:14
-
i'm also experiencing the same problem, in my case, some files on pub/media/ (ex: example.com/pub/static/version1594835608/adminhtml/Magento/…) returns error 403. i've been stuck on this problem for more than 2 daysEarlee– Earlee2020年08月05日 21:29:34 +00:00Commented Aug 5, 2020 at 21:29
2 Answers 2
In my case, it was due to a recent change to theme and composer update.
Go to /pub/static/ and delete everything except .htaccess. Do the same for /var/ (exclude backups folder if you have backups).
You need change permission 755 for folder and 644 for file.
-
But there hasn't been changes to the permissions. The only thing that changed was the Base URL.BasR– BasR2015年10月06日 07:12:35 +00:00Commented Oct 6, 2015 at 7:12