Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

272 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

Magento2: Remove Store Code URL only for default store

I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like: http://mystore....
6
votes
0answers
3k views

Magento 2 with nginx throwing 404 error on setup

Can you please help me to solve the same problem.? I'm trying the magento 2 with nginx on my local environment. I'm getting a problem when trying to call my project for installation htttp://...
6
votes
2answers
7k views

URL Rewrite: From category to CMS Page

I've created a CMS Page. URL Key = about/page1. I've created some Categories. One of them, category #1, it's called about. URL Key = about and its first subcategory, category #2, is named Page ...
5
votes
0answers
156 views

Multistore with subfolders - Including language code before store group in URL

I have a client who needs to include a language code before the store group in the URL. For example, the current setup is: example.com/store1 example.com/store2 There are two subfolders in the root ...
4
votes
0answers
26 views

How to make product url-key with capital letters

I am trying to make my product url-keys in capital letters. Even if I update it manually it is still showing all in lower case letters. Upon checking the url-key after saving the product again it is ...
4
votes
0answers
124 views

Magento 2.3.1 - URL rewrite rules are not creating for product after update url key

Any one faced below issue in default Magento 2.3.1 and if found any solution then please help us to solve this. We are facing an issue with URL rewrite rules in fresh Magento 2.3.1 version. Issue: ...
4
votes
2answers
1k 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 ...
4
votes
0answers
300 views

Catalog URL Rewrites not working

My product pages show 404 page. There is something wrong with the catalog URL rewrites. Screenshot below. The error message I see is Invalid backend model specified: enterprise_catalog/...
4
votes
1answer
503 views

Magento 2 URL rewrite appending .html.html

I've migrated my store from version 1.9 to 2.1.1 using a tool. However all the old products are appending html.html at the end of the URL. I basically truncate the url_rewrite table and saved all the ...
4
votes
1answer
634 views

Case insensitive product urls

Does anyone have a good solution for making magento products' URLs case insensitive? Obviously I've looked into: <IfModule mod_speling.c> CheckCaseOnly on CheckSpelling on </...
4
votes
1answer
718 views

Magento 2.1 Product url shows two times suffix

My store product url shows two times .html as suffix like below http://localhost/m2migration/canape-chesterfield-assise-capitonnee-cuir.html.html This issue arised after ubertheme migration. Can you ...
3
votes
0answers
51 views

How to set custom rewrite in Magento 2

I am moving Magento 2.2.7 to new version 2.3.2. Theme migration has just finished, but some urls not working. e.g In original site https://www.magento.com/media indicated to pub/media, but in my local,...
3
votes
0answers
288 views

Magento 2 custom module friendly URL's

I have my url structured like so: "http://domain.com/post" where post is my module's main router url. Then for each post I have: http://domain.com/post/category/view/id/1. and my url rewrite is ...
3
votes
3answers
419 views

Error with Catalog Url Rewrites based on category

I actually have exactly the same problem as posted here An error occurred while saving the URL rewrite after upgrading from CE 1.9.0.0. to 1.9.3.3. I get the error: An error occurred while saving the ...
3
votes
1answer
1k views

Get frontend category URL in admin area with correct base URL

I try to load categories in the admin area with store specific values. $this->categoryCollectionFactory->create() ->setStoreId($storeId) ->addAttributeToSelect(['name', 'url_key'])...
3
votes
1answer
3k views

Remove parent categories from subcategory in URLs in 1.9.2.3

Magento version is 1.9.2.3. I have tried following solution which doesn't work for me. Step 1: Go to app/code/core/Mage/Catalog/Model/Url.php copy this file to app/code/local/Mage/Catalog/Model/Url....
3
votes
3answers
292 views

Anyone know of a tested script to regenerate url-keys?

I have a client with a pre-existing Magento site in production mode. When the site was created the client was not informed of the importance of the url keys attribute in that he had to make it SEO-...
2
votes
0answers
27 views

Magento 2.2.6 Product Pages Not Opening after upgrade

The product detail pages on my site are no longer opening after upgrading from magento 2.2 to 2.2.6 There are no error rather a catalog search results page is loading instead http://mydomain.co.uk/...
2
votes
4answers
2k views

Magento 2.2.4 The value specified in the URL Key field would generate a URL that already exists

when I have the category in product assign and saving category below error showing The value specified in the URL Key field would generate a URL that already exists. To resolve this conflict, ...
2
votes
0answers
152 views

“Unique constraint violation found” Error When Assign Product into Category

After Assign Product Into Category Getting Error Unique constraint violation found In exception.log file :- [2019-05-31 17:53:29] main.CRITICAL: Unique constraint violation found {"exception":"[...
2
votes
0answers
41 views

Magento 2: Use Categories Path for Product URLs is not working

I have two products having the same attributes as categories, attribute set, etc. And I have set Use Categories Path for Product URLs as NO but still, one product has the category in URL another don't ...
2
votes
0answers
87 views

Magento 1.9 rewrite/redirect issue

Magento is redirecting to the wrong url. Checked htaccess as I thought there is a problem but not, there is no redirect for this url. So I've checked rewrite table but there is no obvious cause. For ...
2
votes
1answer
38 views

Magento 2 Make GET Request url to rewrite acceptable

For example I have this url which makes get Request and renders block with specific collection by Id. mainpage.com/products?some_category=99 Since Magento 2 Url Rewrites only accept /params/...
2
votes
0answers
160 views

How to add a custom attribute value to product url in Magento 2

I am using Magento ver. 2.2.3 . I need to add a custom attribute's (brand) value to the product url, like : http://domain.com/smeg/smeg-cooker-90cm-with-gas-hob-cream.html For that i have overridden ...
2
votes
0answers
42 views

Magento 2 - Unable to access the Category page without index.php

I have Magento 2.3.0 recently upgraded. In which, I removed index.php from the base url, every where its working fine. Even in Category Page, except for one category page. I can only access that ...
2
votes
0answers
302 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 ...
2
votes
1answer
1k views

Magento 2: “Use Categories Path for Product URLs” configuration does not working correctly

I have a store with few categories. I want to have only one url for each product - domain.com/product_name.html. I don't want to have products URLs with the category path in them. I set “Use ...
2
votes
0answers
20 views

Problem with multillanguage url rewrite

I have installed Magento 1.9.3 with sample data so I have category: Women clothing with url women.html for the eng view femmes.html for the fr view frau.html for the german view When I switch the ...
2
votes
0answers
193 views

How to include category id in url on category list page?

i want to include category id included in url on category list page. My default category url is listed below:: http://magento2.shelltag.com/women/bags/backpacks I want to show it like this : http://...
2
votes
0answers
26 views

Category Url's ended with numbers like car.html -> car-1.html

We have multiple stores in our magento website, few of the category Url's are ended with car-1.html and car-2.html. From basic observation Admin category config - car.html store one - car-1....
2
votes
0answers
90 views

Category URL rewrite generating with categoryname (hypen + increment) for n store views

My website has 10+ store views, I observed that while creating new categories the default URL rewrite functionality of Magento is adding hyphen + increment id based on the store views count. like ...
2
votes
0answers
345 views

What is the core_url_rewrite from M1 called in M2?

I wanted to do a bulk import of url rewrites but cannot find the proper table.
2
votes
1answer
936 views

URL Rewrite Rules in Admin

I apologize if this is a duplicate request someplace else, but I could not find an easy way to locate it if it exists, so here we go. I want a simple breakdown how to use the fields in the URL ...
2
votes
3answers
2k views

Cannot remove “.html” from URL in Magento 2

I am trying to remove ".html" from the URL. Attached are my catalog SEO setting in the Magento 2. As you can see I have remove the ".html" from both Category URL Suffix and Product URL Suffix. I'm ...
2
votes
0answers
140 views

Wrong checkout URL after migration

I'm using Magento 1.9.1. I tried to migrate from http://www.example.com to http://www.example2.com/subfolder/shop/, and I changed the records web/unsecure/base_url and web/secure/base_url in table ...
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 ...
2
votes
1answer
266 views

Magento2 unfriendly urls after import products

I've imported products with the build in importer. Since then a lot of products are only reachable via the long url's. http://domain.com/catalog/product/view/id/295/s/product-name/category/4/ But ...
2
votes
1answer
201 views

Mask product URL when there's only one available in category

I have a product page http://www.domain.com/category-with-1-product/ramdom-url And i need to rename the full url to a fixed url http://www.domain.com/fixed-url ramdom-url changes every 24 ...
2
votes
0answers
94 views

URL rewrite rules are not working

I am trying to create custom URL rewrite from category to CMS page. I have page url like this about-us.html as category page and about as CMS page. Now when i create custom url it works but after ...
2
votes
0answers
135 views

Url Rewrite 404 Error Multistore view

I have two views english store and german. The switch for switching the two languages ​​works without problems. I find myself as on the German side imprint. From there I would like to switch to the ...
2
votes
0answers
155 views

Delete old Urls from database

Good morning! Is it possible to delete old url records in the database without harm the system? My problem is a shop that first started with one storeview in english. Years later they added a ...
2
votes
0answers
131 views

Magento Enterprise url rewrite in observer

We tried to implement this scenario in ee 1.13: we have a custom product attribute (new_edition_id), when a product is saved, if this attribute is set, we want to create a url rewrite from current ...
2
votes
1answer
2k views

How to Magento remove default store view code from url?

We need your help to solve this problem. we have a 2 view store in English and Arabic URLs now www.example.com/en www.example.com/ar we need to remove code view in English version only as default ...
1
vote
0answers
32 views

How to Customize Category URL?

Regarding Customize Category Url like : storename.com\category_id+category_name+category_attribute I read before : "If you have a small amount of customization necessary, the URL rewrite ...
1
vote
1answer
21 views

what is equivalent of catalog_category_entity_url_key in magento2?

I am trying to find category url keys and I have catalog_category_entity_url_key in magento1, but I do not have it in magento2. how can I find the values?
1
vote
0answers
39 views

Magento2.22 In sitemap.xml inside more than product url getting like this “catalog/product/view/id/51”

I am using Magento2.2.2 and I used third-party module for URL regenerate this Iazel_RegenProductUrl and I apply command line through change URL for example apply this /usr/local/php71/bin/php-cli ...
1
vote
0answers
41 views

Third level categories Url is not working in magento 2

Shop Colors Rushmore Boston Mill Little Cottonwood This my category structure. But child category URLs are not working. Link: mysite.com/shop/colors/rushmore.html
1
vote
0answers
41 views

Magento 2.3.0 URL keys regenerate on import

This is a serious issue that is occurring on numerous Magento 2.3 builds (I have tried) If we use the import function from a CSV with the "name" header, Magento automatically updates the URL key to ...
1
vote
2answers
34 views

SEO URLs in custom module

I have a module built in magento 2.1.16 which store details of contacts in database and fetches them on list page and details view page. The contacts are of 3 types Branches (https://roadmaster.com....
1
vote
1answer
78 views

Magento 2 : URL Rewrite management

In magento 2, I want to do like this below way : http://php722.local.com/m231/products/category1 => This is category url (Products is main category and category1 is sub-category of products) Now, ...