2022 Developer Survey is open! Take survey.

Questions tagged [.htaccess]

Questions about `.htaccess` files in Magento, used to configure the Apache webserver

Filter by
Sorted by
Tagged with
2 votes
5 answers
5k views

frontend and admin not working magento 2.4.2 upgrade

Frontend and admin doesn't work or show only 404 not found pages It is installed in a sub directory of root folder The development in command line everything works I can change the .htaccess file , it ...
user avatar
0 votes
2 answers
8k views

Moving from http to https - redirect via htaccess file

All my urls were unsecured and was indexed by google like that. Now I'm planning to secure all my pages with https But when the old urls show up on google search they automatically resolve to the ...
user avatar
16 votes
6 answers
44k views

Local installation of Magento 2 doest not generate files in the pub/static folder

I've just installed Magento 2 Community Edition with sample data (downloaded from their website and not installed with composer) locally via MAMP. The installation process was succesful, but all files ...
user avatar
0 votes
2 answers
2k 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 ...
user avatar
  • 1
3 votes
3 answers
12k views

Accidentally deleted .htaccess file inside pub/static folder

I accidentally deleted my .htaccess file. Before that I could just delete everything in the var and pub/static folder (except the .htaccess file of course) and just reload the page to see my CSS / ...
user avatar
  • 231
2 votes
4 answers
11k views

Remove parent categories from subcategory URLs

I realise similar questions have been posed before, but I have an additional caveat when I ask the following question. How can Magento URLs be rewritten such that: http://www.example.com/category/...
user avatar
1 vote
4 answers
14k views

How to restrict specfic ip address to access magento site in .htaccess file in magento?

I have an idea below text in .htaccess file in magento root folder. Order allow,deny tells your web server that the Allow rules are processed before the Deny rules. Order deny, allow means that the ...
user avatar
  • 207
6 votes
3 answers
1k views

How to add another web app to a subdirectory within Magento?

We are running magento on our site www.xsmoke.com. The site is international, so we are using "/country code" - e.g.www.xsmoke.com/de/ etc. Now we would like to install wordpress in one of the ...
user avatar
3 votes
1 answer
1k views

Magento under WordPress as subdirectory not working

I am using GoDaddy server. I have WordPress as root directory and i have setup Magento from local to server inside root as subdirectory. Magento home page is working fine,but when i try to open any ...
user avatar
2 votes
1 answer
3k views

Permission Denied htaccess in folders where no htaccess file even exists

This permissions issue comes up in the server log. It doesn't stop the site from loading but it does stop a lot of the site from functioning. Some things I did fix through permissions but things like ...
user avatar
0 votes
1 answer
147 views

Frontend and Backend is not Working : Magento 2.4.2 ( Internal Server Error)

I am using below configuration Magento 2.4.2 PHP 7.4 Composer 2 Elasticsearch 7.9.6 My installation is in subfolder https://162.241.125.112/Angel/angel Admi url is - https://162.241.125.112/Angel/...
user avatar