Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [.htaccess]

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

39 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
2answers
46 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 ...
2
votes
0answers
79 views

Magento 1.7 redirecting URLs when URL rewrite table empty and non in htaccess?

Im just cleaning up my site and sorting out all the 404s in webmaster tools. To fix the 404s I was just putting in a manual 301 in the htaccess file like this. Redirect 301 /football-rebounders/spot-...
2
votes
0answers
558 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 ...
1
vote
0answers
115 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
0answers
60 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....
1
vote
1answer
24 views

.htaccess redirect samplesitex.com to samplesitey/alias-page in both https and http variants

I am trying to redirect an alias url to a different url path. (it wont let me do this in cpanel for some reason) Example: SiteX.com > SiteY.com/this-page I have tried RewriteCond %{HTTP_HOST} ^...
1
vote
0answers
24 views

Are the Magento 2.1.14 rewrite rules in htaccess file working properly?

In the default htaccess file in Magento 2.1 there are some RewriteCond's and RewriteRule's that are explained in the htaccess.sample file that comes with Magento 2.1. never rewrite for existing files,...
1
vote
0answers
977 views

Mysql server goes down with queries in SLEEP STATE when I access magento site

We have a Magento 1.9.2.4 site. We are accessing it on using a subfolder and subdomain as http://dummysite.com/magentosite and http://magentosite.dummysite.com Here we would live to mention that our ...
1
vote
0answers
67 views

How avoid user authentication for one single url in htaccess?

SetEnvIf Request_URI "^/wp-content*$" AdminUri AuthUserFile /public_html/.htpasswd AuthType Basic AuthName "My Secret Folder" Require valid-user I set up authentication in my site as above. I ...
1
vote
1answer
437 views

How to map a dynamic url to a function in controller

I'm creating a new magento module. The frontend name of the module is groupedproduct. Now i need to map a dynamic url to indexAction of the IndexController. For example the url will of the form http://...
1
vote
1answer
974 views

var .htaccess not activating - cacheleak vulnerability

I recently ran a magereport.com scan on one of our magento sites and it reported a cacheleak vulnerability. In my var folder, there is an .htaccess file but it is not activating and the ...
1
vote
0answers
65 views

Subfolder as Magento storeview

I am trying to access a store view in Magento 1.9.1.1 from a subfolder. I have: www.webshop1.nl => store_1 + default www.webshop2.nl => store_2 + storeview_NL www.webshop2.nl/en => store_2 +...
1
vote
0answers
154 views

Sub-domain Stores on Local Dev Server

I have a live Magento site with a main store and also white-label stores located on sub-domains, all running out of the same Magento website. I'm using .htaccess to direct sub-domains to the ...
1
vote
1answer
1k views

How to prevent duplicate content issues caused by index.php in urls?

I've been trying to prevent our homepage from displaying as both www.domain.co.uk & www.domain.co.uk/index.php but now i've realised that every other page displays with /index.php in the url. ...
1
vote
0answers
41 views

Magento 1.8 - Very strange issues with redirects caused by our hosts tech support team

We asked our hosts tech support to change the 302 redirects to 301's...after numerous attempts by them i gave up on them and accepted that they could not do it. Now they have left us where none of ...
1
vote
0answers
44 views

Picture generation does not work after URL redirect in .htaccess

Picture generation does not work after URL redirect in .htaccess with the following script: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{...
0
votes
0answers
14 views

CORS fix in .htaccess not working if website URL is without index.php in magento 1.9

Default my magento store is loading without index.php. Site is secured. for both there are rewrite rules in .htaccess file which are working fine. I have implemented following code in .htaccess ...
0
votes
0answers
24 views

Magento 2 firefox not redirecting from http to https

I have setup my ssl certificate and configured admin. Use secure URLs on storefront & Admin to YES When I do example.com in chrome to takes me to https://example.com but in Firefox it not taking ...
0
votes
0answers
14 views

Add new domain in new store view not work in magento 1.x

I created a new store view and new url. I config it in backend and add in htaccess like this SetEnvIf Host www\.my.web-abc\.com MAGE_RUN_CODE=berba_new SetEnvIf Host www\.my.web-abc\.com ...
0
votes
1answer
25 views

All my directories are accessible magento 1

All my directories (except app/) and my root files (install.php, index.php,.gitignore...) are accessible to the users.. Is it a problem ? I need to create a .htaccess for each my directories ? Thanks ...
0
votes
2answers
29 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 ...
0
votes
0answers
17 views

Redirect one https url to http

I have website running in https but for one url I want to run it on http instead of https when I used stackoverflow.com/questions/43597395/… then it is creating loop. How we can resolve this?
0
votes
1answer
19 views

Htaccess file erased

I needed to add a line of code to my htaccess file so I downloaded it by FTP using Filezilla to my local machine I now see that the size of the htaccess file on the server is now 0 while the one I ...
0
votes
0answers
110 views

Magento 2 Multistore URL Rewrite htaccess

Hi this might look like a repeated question, but I think my case might be very specific. It turns out that I have a project that has 2 stores and 3 store views, the client asked for a upgrade from M2....
0
votes
1answer
240 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/...
0
votes
1answer
579 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
0answers
116 views

Remove Duplicate admin URL in Magento 2

Hi I have stuck using magento 2 where I want remove duplicate admin in the URL,this my url : https://example.com/admin/admin/system_config/edit/section/web/key/a986525f4db93c0abcda3b1d1cbb3/ and I ...
0
votes
2answers
95 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 ...
0
votes
2answers
218 views

Transferring magento website to sub domain gives 404 error but works fine on main domain

I have a magento (1.9.2.1) setup on a main domain ( www.mysite.com ) and now I want to transfer it from main domain to subdoamin like (sub.mysite.com). Changed app/etc/local.xml file details Cleared ...
0
votes
1answer
491 views

Magento 2.0.12, 404 error(whoops, our bad) on all pages except Home, after fresh installation

After doing a fresh installation of Magento 2.0.12. I am getting "whoops, our bad" page for all pages except the homepage(index). The homepage load fine but for all other pages/links , I m getting ...
0
votes
1answer
23 views

Force Trailling slash and problem with pop up

Hi I have found this code about the trailling slash and it works perfect. Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} [A-Z] RewriteRule (.*) ${lc:$1} [L,R=301] ...
0
votes
0answers
18 views

Magento move through shell - after move index.php needed in urls

Strange issue, I do a backup of folder and database through shell. I setup the new test shop in a subfolder, change the url etc. All good. Cleared cache, did a reindex. Weird issue, after the move ...
0
votes
0answers
1k views

Font from origin as been blocked from loading by Cross-Origin Resource Sharing policy on multiple websites magento

I have created two websites using one magento installation, like: abc.com (original) xyz.com (second domain) Both are working fine except the fonts issue I got on sub domain (second website). Error ...
0
votes
1answer
69 views

Magento MultiStore Rewrite rules does not works

I have this code in .htaccess RewriteCond %{HTTP_HOST} www\.fashionstudio\.ie [NC] RewriteRule .* - [E=MAGE_RUN_CODE:default] RewriteCond %{HTTP_HOST} www\.fashionstudio\.ie [NC] RewriteRule .* - [E=...
0
votes
0answers
46 views

Redirect magento site

I need to redirect the whole website to a specific url i.e to domain.com/customer/account/create. using htaccess? How I can do that. I tried the following stuff it it show redirection loop ...
0
votes
2answers
603 views

Magento 1.8.1.0 can't login to admin panel - htaccess/memcache suspected

I have recently setup one of my client's live site to local. And was unable to run it on local instantly just after modifying core_config_data and local.xml, then I opened .htaccess and found ########...
0
votes
1answer
417 views

How to remove index.php in product view page?

For some reason i kept index.php in url but i want to remove index.php in Product individual page only. My current url : https://domain.com/index.php/category-names/product-name.html i want to this ...
0
votes
1answer
289 views

Want to remove index.php from the URL

Hi My site name is xpressbuyer.com. I have tried almost all solution, but nothing seems to be working. Below things i have done. Add code in .htaccess Set Use Web Server Rewrites to YES in Search ...
0
votes
3answers
614 views

Moved from http to https but include www in url

Trying to setup my site so that its on HTTPS AND includes the WWW in the URL. After a while of searching I found a few posts that helped me redirect to https: stackoverflow.com/questions/25527671/...