Questions tagged [htaccess]
Denotes questions related to htaccess. A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, used for configuration of site-access issues, such as URL redirection, URL shortening, Access-security control (for different webpages and files), and more.
230 questions
0 votes
1 answer
118 views
Adding a sub-directory path to Multi-website Base url in Magento 2.4.7
We have single codebase and 2 Multi-websites domain.de domain.uk Now we want to create a new one domain.com/no so we want to set the baseurl domain.com/no instead of domain.com/ Currently, We followed ...
0 votes
0 answers
217 views
Magento 2.4.6 in subfolder on Apache2
Ok, lets see if this famous issue got some updates and solutions. Seen many questions about it, but no real solutions. I'm having a setup with two different systems in two subfolders, like this root ...
0 votes
0 answers
179 views
htaccess rewrite rule magento 2.4.5 prepends pub/
I have got 2 rewrite rules which work, but pub/ is added to the url when i dont want that. I add the rules to pub/.htaccess. If i add them to the .htaccess in the magento root, nothing happens. The ...
1 vote
1 answer
69 views
Load magento via .htaccess RewriteRule
I've a very specific problem with magento. At first let me explain what the problem is. I load magento into an iFrame to integrate the store into a webpage. This works like charm until it comes to ...
0 votes
0 answers
201 views
Apply .htaccess rule for controller and cron
I have some long-running scripts that should bypass the "Connection Timeout" set up in LiteSpeed. I want to do it in the .htaccess file and it works if I apply this rule (*RewriteRule . - [E=...
0 votes
1 answer
1k views
Magento 2 - ONLY the admin page doesn't work
I have installed Magento 2 locally. I imported the database, changed the URL, and so on. Everything works fine - each subpage loads. Unfortunately, the admin doesn't work. The page just shows 404. ...
2 votes
1 answer
892 views
Magento 2 - New storeview redirects back to default store view - status code 302
I created a new storeview accessible under the URL app.example.com I added this to the .htaccess to set the MAGE_RUN_CODE Environment Variable to app if the URL app.example.com is called: SetEnv ...
0 votes
1 answer
49 views
Display my images in ebay listings (or other website) .htaccess question
I have a Magento site (2.4.3) running on Ubuntu with Apache. I am creating eBay listings which are using images from the https://<mysite.com>/images folder. The images are not displayed. If I ...
1 vote
1 answer
5k views
How to increase max upload image size to 16M in Magento 2?
I modify the field values upload_max_filesize = 20M ,post_max_size = 20M and memory_limit = 2048Min the PHP.ini file of the server. I have to upload the banner images up to 16MB on the website but it ...
1 vote
0 answers
2k views
Magento 2.4.2 on subfolder with Apache
Magento with 2.4.2 changed the location of the root and the index.php by set everything inside the pub folder. This causes a 404 problem in the case magento is not in the docroot and I cannot resolve ...
0 votes
1 answer
430 views
Error redirected you too many times upon trying to install Magento 2.4
I just downloaded latest version of Magento 2.4 and I am trying to install it on Namecheap hosting but upon entering the URL of my website in the browser to start the setup wizard, it keep re-loading. ...
2 votes
4 answers
1k views
Magento2.4.2 multi website setup not working
I have upgraded the Magento version from 2.3.3 to M2.4.2 now the main example.com working fine and example.com/wholesale | example.com/retail not working. I have copied .htaccess from pub to these ...
0 votes
1 answer
4k views
Apache configuration file for Magento 2.4
I have installed Magento 2.4 on Apache 2 sever running on Ubuntu 20.x When I try to load the magento root directory on browser, I get Not Found The requested URL was not found on this server. I have ...
0 votes
2 answers
203 views
/index.php/rest/V1/modules File not found after upgrading to magento 2.4.2
after upgrading to 2.4.2 there is a problem with rest api the url /index.php/rest/V1/modules responds with "File not found" the url /rest/V1/modules works well https://magento-560832-1812590....
2 votes
2 answers
6k views
The requested URL /pub/ was not found on this server. - Magento .htaccess problem
I have an problem about magento 2.4.2 Installed magento 2.4.2 using Composer-CLI. But I can't access magento homepage (http://localhost:8888/magento2) The requested URL /pub/ was not found on this ...