All Questions
29 questions
0
votes
1
answer
22
views
Create 301 redirect for all 404 pages to the homepage (404 with any URL combination)
I'm trying creating a redirect for all the 404 pages straight to my homepage. I have tried creating it through .htaccess but seems like it does not worked. .htaccess may ask for the old url & a ...
0
votes
1
answer
97
views
Magento 2: Client Denied By Server Configuration, Preventing Backend Log On
I was working on the backend of our Magento 2 server and was trying to adjust the layout of our home page. I'm now at a point where it gets stuck loading the admin panel and when I try to navigate ...
1
vote
1
answer
384
views
Header set in .htaccess doesn't work
I am adding below headers in .htaccess file but it is not reflecting in frontend.
I have done cache:flush and restart server apache.
I am getting - https://i.sstatic.net/mKsoP.png in security headers.
...
0
votes
1
answer
24
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
2
answers
2k
views
Prevent Bot traffic with .htaccess on Magento 2?
How to prevent(block) bad bots traffic with .htaccess for Magento 2 ? What you recommend ?
I do not know how to do this.
And which codes in .htaccess I need to modify.
Or Do we have any other ...
0
votes
6
answers
3k
views
Magento 2 Fresh Install Showing 'Whoops, our bad...' 404 page not found
After install very fresh Magento 2, I am seeing Whoops, our bad... (404 Not Found) in all pages. Screenshot:
I am using Linux Mint OS.
Here is my steps:
Installed Apache version is apache2 -v:
...
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 ...
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 ...
0
votes
1
answer
304
views
How to add 301 Redirect pages in magento 2?
I want to add 301 redirects to these URLs -
1-> From www.abc.com/blog To www.abc.com/blog/
2-> From www.abc.com/contact To www.abc.com/contact/
3-> From www.abc.com/catalogsearch/advanced To ...
0
votes
1
answer
521
views
Magento 2 - remove .html from URL by using .htaccess
We have some wrong URLs in our store ending with .html. If the user opens such a URL, then the .html should get removed, otherwise the site cant get found.
So I added this rule to my .htaccess file in ...
1
vote
1
answer
6k
views
How to add the webp format in the mod_expires part of the .htaccess file?
I add this line but it is not taken into account because the browser inspector tells me that the cache is 2 days for webp images:
ExpiresByType image/webp "access plus 1 month"
I use Plesk with ...
0
votes
1
answer
469
views
For Magento2 how to apply a redirect rewrite in .htaccess file for all URL's from .html to /
For Magento2 how to apply a rewrite in .htaccess for all URL's from .html to / URL structure. The M1 store has .html as the end, the new M2 store has / as the URL ending for all products and ...
0
votes
0
answers
57
views
Internal Server Error 500 after upgrade Magento version from 2.2.6 to 2.2.10
After I upgrade the Magento version from 2.2.6 to version 2.2.10, I get Internal Server Error 500 when I try to access the website.
I tried multiple solutions for example (a) removing var folder and ...
2
votes
2
answers
1k
views
"ERR_TOO_MANY_REDIRECTS" when turn on Cloudflare CDN possible .htaccess file issue
When I tried to turn on Cloudflare CDN, my site will get "ERR_TOO_MANY_REDIRECTS" error page (the site loads fine if I don't turn on Cloudflare CDN). I checked with the hosting provider, seems like ...
0
votes
2
answers
420
views
Magento 2 url key includes SKU number, how to remove?
The big problem with Magento somehow amending the url key to include the SKU where
/product-title-stec00778.html
should be
/product-title.html
and the SKU is
SKU STEC00778
Any ideas? Not ...
2
votes
1
answer
754
views
what is .htaccess file for in Magento, is it important in anyway?
I see this file in both Magento one and two, I would like to know what is its functionality in Magento because I have read some articles about it that explains that this .htaccess
"file is a ...
1
vote
0
answers
813
views
How to redirect default store view to en?
I've got a store with 2 stores, one with 2 languages and the other just 1.
So:
Website > Store1 > English (www.site.com/en)
Website > Store1 > French (www.site.com/fr)
Website > Store2 >...
1
vote
0
answers
361
views
Magento 2 - how do i redirect "mydomain/pub" and "mydomain/pub/media" path to homepage?
I'm trying to redirect "mydomain.com/pub" and "www.mydomain.com/pub/media" to homepage (mydomain.com).
Currently, "mydomain.com/pub" path shows the homepage with no css and js loaded, and "www....
0
votes
1
answer
2k
views
Rewrite rule for media images
we need to set rewrite rule for some images in Magento 2.2.5 using .htaccess rules or nginx conf
Example 1
Request Path:
https://www.example.com//media/catalog/product/cache/1/thumbnail/543x403/...
1
vote
1
answer
6k
views
Magento 2 .htaccess file missing in pub folder
I was recently trying to upgrade my Magento 2.2.7 to Magento 2.3.0 and the following message came up in component dependencies
Found non-writable path(s):
/var/www/vhosts/powermyself.com/httpdocs/pub/...
1
vote
2
answers
4k
views
Magento 2 Leverage Browser Caching for Images, CSS and JS not any effect
As in Magento 1 to increase the page speed score and Y-slow score we have used
Leverage Browser Caching for Images, CSS and JS code in .htaccess file but same script in Magento2 is not working.
...
0
votes
2
answers
477
views
How to forbid access to .htaccess File in Magento 2?
If I call the .htaccess file in the browser e.g. https://www.mycompany.com/.htaccess, then it is getting downloaded. Is there a way to fix this?
I added this block to my .htaccess file, but it does ...
1
vote
1
answer
868
views
This page isn’t working hotandbold.com redirected you too many times
My Magento Backend URL is not working and fronted is working Properly.
Backend Url:- http://hotandbold.com/staging/admin_jewellery/
Fronted Url:- http://hotandbold.com/staging/
Can You suggest me, ...
2
votes
2
answers
53
views
Magento Install issues
Hi I've installed Magento 2 in a directory : var/www/html/magento2
There seems to be two problems I'm experiencing:
When I browse to http://....aws.com/ I can see contents of html folder and lists ...
1
vote
1
answer
604
views
Multistore using .htaccess not working
One method for controlling multiple stores involves adding SetEnvIf statements to .htaccess to set server variables MAGE_RUN_CODE and MAGE_RUN_TYPE.
http://devdocs.magento.com/guides/v2.1/config-...
2
votes
0
answers
576
views
How can I perform 301 url redirection in Magento 2.0?
URL structure has been changed for one of product page in my Magento 2.0 webstore. Now I need to perform 301 redirection to newly created URL.
Is .htaccess still helpful here? If yes then please ...
0
votes
1
answer
484
views
Who to "enable Magento to use the distributed configuration file .htaccess"?
One of the steps in this Magento Apache2 installation guide is to "enable Magento to use the distributed configuration file .htaccess". In that step, they have a link to Apache2 page guideline ....
...
17
votes
6
answers
46k
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 ...
2
votes
1
answer
4k
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 ...