Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

0
votes
0answers
18 views

Add product sku to the cart url when user add the product to the cart

How to pass the product SKU as a query string to the URL of the cart on the cart page in Magento 2. I want to rewrite URL of the cart page if user add the product to the cart and the cart URL must be ...
0
votes
2answers
18 views

Two Url's for one product

i have one product with two different url's https://dutchmanaxles.com/products/axle-housing-rearend-hardware/rcv-934-cv-joint-lightened.html and https://dutchmanaxles.com/rcv-934-cv-joint-lightened....
0
votes
1answer
23 views

How to add Product id after cart url on cart page in Magento 1.9

I want to add some product id after cart url on cart page the product that is added in the cart. Because i want to target that products by using omnisend extension that target by part of url. To show ...
0
votes
0answers
14 views

How can I automatically map product URLs from an existing Zen Cart site to a Magento 2 site during migration?

We have an e-Commerce site built on Zen Cart 1.3.9h that has a substantial amount of traffic, and the URL structure on the new Magento 2 site is not the same as on the old site (entered via Ceon URI ...
0
votes
0answers
7 views

How to redirect http url to new https with 301 redirection in magento 1 from csv file

I am trying to redirect http url (abc) to https url (xyz) with Perminent redirection (301) from csv file in magento 1 Enterprise Edition. I got this link for community edition (core_url_rewrite is ...
0
votes
1answer
21 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 ...
1
vote
1answer
20 views

SEO URL not properly Multiwebsite magento2

We have created a multiwebsites. But the product url is not formatting correct seo-urls. I have tried to added the URL Rewrite in admin section, but its not working. The product url showing as "www....
1
vote
0answers
30 views

Magento 2 - product's url_key changed automatically

We are using Magento 2.2.5. Currently in Magento store we managing url key by concatenating product's name with the brand's name. So many times in some products url key of product's changed from only ...
0
votes
0answers
13 views

Category URL Issues: 404 after deleting store view

I upgraded my Magento 1 store to Magento 2 recently and I noticed the category urls are defaulting to the spanish store view URLs. I deleted all store views except for English and the category urls ...
2
votes
0answers
35 views

Disable Product URL without Category Path

My website I only use category URLs, I want to disable/redirect direct product link to link with category i.e example.com/catname/productname example.com/productname [want to disable this] I have ...
0
votes
0answers
24 views

Magento url Rewrite issues

I have created this URL form URL rewrite in magento2 in request path I have put this URL /static/version1525430192/frontend/abc/default/en_US/images/stories/landingpage/pdf/abc_xyz.pdf and in the ...
1
vote
2answers
44 views

Magento2: Remove home after base url

How to remove /home after baseUrl ? www.baseurl.com/home I want to redirect www.baseurl.com/home to www.baseurl.com (301)
1
vote
1answer
38 views

url rewrite with wildcard possible with magento 2.x default set-up?

I want to use wildcards for url redirects in Magento 2.x with basic Magento set-up. Whenever I add it, either via Import upload or manually added they do not work. Does anyone know if adding wildcards ...
0
votes
1answer
51 views

Rewrite Rules to revert URL structure?

I've got a site which at some point in the past used SEO friendly category pagination for example : category/subcategory/40.html category/subcategory/4.html category/subcategory/15.html category/...
0
votes
0answers
12 views

how to set URL by default from my backend or Using Misravit SEO MODULE - Magento 1.9

everyone. I have a problem with my URLs because the URLs don't get the configuration like this : And some URLs appear like this, and in this case, the URL is : To solve this problem I've done ...
1
vote
2answers
50 views

How to remove url /contact/index in contact page in Magento 2

When we entering contact form in footer from any page it redirect only - /contact/index/ Any options such that we can submit form in footer section not redirect /contact/index After submit form it ...
0
votes
1answer
15 views

Core URL re-write table - delete URL entries for deleted products

We are on Magento Version 1.9.3.7 and have been using Magento for a few years now. When we moved our site to the live site from the development site, we deleted all the development products but looks ...
0
votes
0answers
44 views

Magento 1.9 Url Rewrite not working

I have an issue rewriting url in my store. The following example is what I want to achieve: I want to rewrite this: mydomain.com/andla-om to this: mydomain.com/about-us The page and its link url (...
0
votes
0answers
36 views

Magento 2.2.5 URL Rewrites - Duplicate entry 'myurl' for key 'URL_REWRITE_REQUEST_PATH_STORE_ID'

I am seeing this error when trying to perform a search/replace on the url_rewrites table: UPDATE url_rewrite SET request_path = REPLACE(request_path, '.html/', '/'); SQL Error (1062): Duplicate ...
0
votes
0answers
14 views

Breadcrumb generating non seo url

Magento 2.2.5 All breadcrumbs are generating correctly except for one category. In the breadcrumb url the top category shows https://www.example.com/catalog/category/view/s/category-name/id/3/ ...
0
votes
2answers
33 views

Magento 2 : How to add URL rewrite to static HTML file

I have a static HTML content that is used as a promotional landing page for our website, so it doesn't need to have Magento headers, footers, etc. Just a static landing page. I put the whole landing ...
0
votes
1answer
23 views

How remove module name from url magento 2

Is it possible to remove module name through htaccess or any other way around to hide module name from url of magento 2 .i.e http://abcd.com/modulename/controller Only need to display controller ...
1
vote
1answer
26 views

Magento 1.9 URL rewrite reverts default system URL after re-indexing

I have a problem in Magento 1.9. I have created catalogs and rewrite it to display custom page and product. The rewrites are successful however after re-indexing the default system URL were shown. ...
0
votes
0answers
13 views

Get current category or current product and then get its url in the other store store view

Let's say we have two store views: en and de. And following example urls example.com/en/car/van example.com/de/auto/lieferwagen When we are at a category or product page how do we get the url of the ...
1
vote
1answer
24 views

Magento 2: custom UrlRewrite Controller Router not works with some handlers

I'm creating a module to use custom url rewrites. For this I have created a module and I am using a custom UrlRewrite Controller Router. For testing purpose, I generated the Router below. It works ...
0
votes
0answers
14 views

Weird Category Urls

I'm having an issue with the way that my urls are being generated in our Magento 2 store. We are using the Oleg Koval Regenerate Url Rewrites extension and have it running every night to ensure the ...
1
vote
1answer
25 views

What is the meaning of the is_autogenerated field for category url_rewrites?

I am investigating an issue where a category has more than one url rewrites. It looks like this: mysql> select * from url_rewrite where entity_id = 8597 and entity_type = 'category'; +-------------...
0
votes
0answers
28 views

magento2: Moved magento to new domain ,all urls redirected to old url

Hi i am using magento 2 we moved the site from one domain to another domain.and also i changed folder location one ip address to another ip address. after moving, admin panel working fine. but in ...
1
vote
1answer
52 views

Magento 2 custom url rewrite ignores query string

I am migrating a store from an old custom commerce system to Magento 2. I am trying to add URL rewrites into Magento 2 using the Marketing -> Url Rewrite tool. The old URLs for the store look like ...
0
votes
1answer
87 views

How to find if target path in custom url rewrite exists in magento 2

how to check if the target path for custom url is present in the url rewrite table in magento 2. I had created custom url rewrite using following code. $urlRewriteModel = $this->...
0
votes
0answers
17 views

Magento2 Create 302 redirect for disabled products

I have a magento 2 site version 2.2.4 . When I enter URL of disabled products it throws an error and for SEO purpose I need to create a 302 redirect to category page. Currently I use ...
0
votes
0answers
22 views

Why does this Magento1's saveRewrite function work?

OK, so looking at Magento 1's Mage_Catalog_Model_Resource_Url class, there's a function called saveRewrite. I understand how the core_url_rewrite table works: we add "request paths" which internally ...
0
votes
0answers
23 views

How to generate xml sitemap with new request_path after URL re-write?

I have just updated request_path for the product from www.xyz.com/my_product to www.xyz.com/my_product_new through url rewrite. The request_path is inserted in the database correctly and working ...
0
votes
0answers
18 views

Store switch is not working for custom categories

I have added a categories and called that through CMS block. When I go to that category from homepage it is going fine. After that if I try to change the language,it is not accpeting. say: http://...
0
votes
0answers
193 views

The new url key is not working for product page

I am trying to change "URL Key" for the product. When I edit "URL Key" on product edit page, URL key gets changed correctly ... but the "request_path" in database is not updated for that key. I have ...
3
votes
2answers
185 views

Magento 2| Url regeneration for catalog

I have tried to regenerate urls for categories and products after migration from Magento 1.9.x to Magento 2.2.x through following modules: Url Regenerator 1 Url Regenerator 2 These 2 generates the ...
0
votes
1answer
69 views

product url not updating magento 2

I have update product URL-key but still, the old URL is working. New URL is not working. I have run indexer command, cache flush. Also, regenerate product URL from an extension. But still, the old ...
3
votes
1answer
39 views

Update redirection URL

I try to insert or update the grid in the BO: Catalog > URL Redirects I use the following code: $storeId = 1; $fromUrl = "my_old_url"; $toUrl = "my_new_url"; $rewrite = Mage::getModel('...
1
vote
0answers
37 views

Magento2 How to generate only configurable products URLs in url_rewrite table?

I have the very large number of products and my url_rewrite table have very large numbers of rows so It was possible to only generate configurable product URLs, not any simple products URLs?
0
votes
0answers
52 views

Magento 2, Category Old URL to redirect to New URL

Running Magento 2.1.10 CE, with multiple stores. Having an issue understanding or redirecting the old category URLs to a new one. Previously we had a category "Pillows", it was basically ALL > ...
1
vote
2answers
24 views

How to Remove Page From Magento 2

This is my website "http://www.vitaminf.ir/gosmart2/women/tops-women/hoodies-and-sweatshirts-women.html" i want to remove "gosmart2" from my url how can i achieve this. my site is "http://www.vitaminf....
1
vote
1answer
19 views

change url rewrite special character 'ñ' from '-' to 'n'

I have a Magento ver. 1.9.2.4 with friendly url rewrite active. It works, but it is replacing special characters as 'ñ' with '-' and I need to replace them with 'n'. Now if the product is, for ...
1
vote
1answer
58 views

How to Add URL Rewrite for a Product with system value?

I want to Add URL Rewrite for a Product with system value but when creating new URL Rewrite the option Type has been disabled. Where I can set up or how to enable this option? See my screen below :
0
votes
0answers
6 views

Imported URL Rewrite only works after manual saving

We're migrating this Magento store and we imported several redirects using a dump into the core_url_rewrite table. The dump was successful and we checked the records inside the data base to make sure ...
0
votes
0answers
112 views

Find product/category id by url

I am using Magento 1.9. I will get a url from the request. I have to find product/category id from the url. I have tried these :- Magento - Load product by url Magento 1 get product or category id ...
0
votes
0answers
25 views

Magento 1.9.0.1 redirect catalog/product/view/id/123 URL to product-url Key

In Magento 1.9 I was facing this issue on all the product listing pages as the links generated were like (catalog/product/view/id/123), which I have managed to change to product url by setting "Use ...
1
vote
0answers
40 views

ID Path for Specified Store, Request Path for Specified Store already exist

/index.php/admin/urlrewrite/save/key/9ea46b0d697..../ ID Path for Specified Store, Request Path for Specified Store already exist. how can I resolve above error. Magento ver. 1.9.1.0
1
vote
1answer
379 views

New url key is not working for product after update in magento 2

I have product XYZ and URL key for this product is www.mysite.com/xyz I have updated the value of URL key product from xyz to xyz-new. When I try to access url www.mysite.com/xyz-new. It gives me ...
0
votes
0answers
21 views

rewrite URL in module config

I want to replace some of Magento's default Cart Controllers (which then simply inherit from them). In Magento 1.x I was then able to rewrite any URLs generated by Magento to my custom Controllers, by ...
0
votes
1answer
29 views

Magento multi Language store

Good Morning, one client asked to internationalize a magento 2.2.3 store adding other two languages (english and spanish). The current website is on production since april with only the default ...