Questions tagged [mod-rewrite]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
838 views

Magento 2 - Single instance, multiple websites with single store view each - How to configure Apache?

I am trying to set Apache 2.4 to serve a new project on Magento 2 (EE). The structure needs to be: http://siteA.mydomain.com/ <-- (MAGE_RUN_CODE = aa_uk) http://siteA.mydomain.com/de/ <-- ...
2
votes
0answers
168 views

Mod_rewrite rule - [L] not working as expected [closed]

I am trying to create a mod_rewrite rule that will handle transparently rewriting a friendly URL to a query string redirect behind the browser. Every tutorial says to use the last flag [L] but this ...
1
vote
4answers
7k views

Magento 2: Using nginx — All Static Assets are 404

I'm trying to install Magento 2 using the Laravel Homestead project. Laravel Homestead provides a virtual machine based around nginx. I have nginx successfully serving Magento 2 application pages. ...
1
vote
1answer
22 views

apache2.4; php7.2.16 @debian9 squeeze + Magento CE 2.3.1

I am currently stuck with a Magento 2.3.1 CE installation on a VPS running on debian9 on LAMP The installation went without any problems. But when I try to access the admin url I get the URL not ...
1
vote
0answers
189 views

htaccess Rewrite Rules for Magento Multisite with WordPress blog

I have a Magento installation running 2 websites: www.mywebsite1.co.uk www.mywebsite2.co.uk We had a blog extension that was used, however now we've switch the blog on mywebsite1.co.uk to WordPress. ...
1
vote
0answers
34 views

How to remove index.php from Magento URLs? [duplicate]

I followed all the steps in this explanation and the index.php has been removed from my URL, but when i click on a product or any link in my store it is a redirect me to root path. how i can fixes ...
0
votes
1answer
162 views

Why we rewrite urls in magento 2?

When I deployed magento project from one server to another server css and js didn't loaded. So I google and got this answer which worked for me. <Directory /var/www/html> Options ...
0
votes
1answer
114 views

Rewrite module not working

I just cant figure out where im going wrong.. can someone tell me? app/etc/modules/Mynamespace_CheckoutOverrides.xml <?xml version="1.0"?> <config> <modules> <...
0
votes
1answer
37 views

Magento 2 Base Url path issue custom theme

I have a Magento 2.3.1 site installed in a subfolder and I have a problem with base URL. When I have a link like this < a href="#" > LINK < /a > Instead of this www.domainname.com/...
0
votes
0answers
47 views

XML sitemap redirects to HTML sitemap after change

I have a strange issue where when you visit www.website.com/sitemap.xml or www.website.ca/sitemap.xml, it shows the sitemap as an html page. The following has been added to my .htaccess : #Sitemap: ...
0
votes
1answer
667 views

Using htaccess to redirect baseurl with index.php

I have 1.9.3.6 magento installed with sample data. The backend works fine, but the frontend breaks with any links. I'm running it with apache through localhost. Base URL: http://127.0.0.1/magento ...
0
votes
1answer
544 views

Toggle shipping method based on customer's condition

I created an extension following Inchoo's tutorial but still confusing at how to toggle the shipping method. Once customers about to see the shipping method page, I need to check the customer's ...
0
votes
1answer
247 views

Rewrite not working CSS not loaded, module enabled [duplicate]

CSS, scripts not loading, via pub/static/version1496086766/frontend/Magento/, but loading without version: pub/static/frontend/Magento/.. There is .htaccess file with rewrite rule, and sudo a2enmod ...
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 ...