Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

1
vote
2answers
33 views

Magento 2: How to pass custom params with url?

I want to pass custom params( product id and currency) with product page url dynamically. Example url: https://example.com/boys-5-piece-blue-suit-eric.html?id=123&currency=GBP Need help
0
votes
1answer
689 views

Redirect rule when removing product from category

I am looking for help on a redirect rule for magento. I have recently removed a lot of discontinued products out of product categories for example: http://www.example.com/gym-wear-brands/golds-gym-...
0
votes
3answers
40 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, ...
0
votes
1answer
21 views

UrlRewite one website to another?

Is it possible in magento to redirect existing site one page to another website? Like. http://magento-website/demo to http://magento-website-2/demo Without using htaccess and php header function. ...
0
votes
3answers
6k views

Magento 2 : Unique constraint violation found when adding product, categories or mega menu items

I have a Magento 2.2.3 installation and I have the theme SM-Maxshop on that. I am not able to add any products, categories or Megamenu items to it. I get an error "Unique constraint violation found" ...
2
votes
1answer
944 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 ...
3
votes
3answers
347 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
57 views

No index on the url_rewrite table

Is there any reason why there is no index on the entity_id column on the url_rewrite table? Or on entity_id and entity_type? The only index I see is on entity_id and store_id. I understand that that ...
0
votes
1answer
25 views

Magento 2 All Links Give 404 Not Found

So I’ve just migrated a magento store over to a new server. Gone through the standard setup procedure of copying the html files, updating the host url in the database and modifying my db details in ...
2
votes
1answer
38 views

Getting Error Unique constraint violation found - When remove suffix .html in magento 2

I Am getting error when I am removing .html from Category URL Suffix. Error is Unique constraint violation found. Anyone have genuine solution for this. Thanks
0
votes
1answer
9 views

How to remove head category but keep subcategory in url magento

Currently my url structure is as following: parameters: example.com/head-category/sub-category/product-name actual url: example.com/gear/balls/superball-0192 I would like to change this to: ...
0
votes
0answers
30 views

url_rewrite duplicates during migration. How it solve?

I started to do migration from magento 1. And i faced with some very weird issue. Namely during Url Rewrite Step. This error looks: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate ...
0
votes
1answer
34 views

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

I created category with url key name is "xxxxx". I have changed that category url key to "YYYYY". INow i dont like that url key for that category. Again i changed the url key to "xxxxx". It throws "...
2
votes
0answers
52 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":"[...
1
vote
1answer
781 views

Remove multi-language storeview code from the url - Magento1.9

I am using Magento multistore view for multiple languages like english, german, french etc. To have clean urls i have enabled the settings "Add Store Code to Urls" to "yes". Now it shows following ...
0
votes
0answers
25 views

Magento 2 - Issue while product save in admin

I have migrate products from magento 1 to magento 2, so for product with similar name magento 1 assign some random number in the url key. so this same url i had imported to magento 2. when i open a ...
4
votes
0answers
52 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: ...
0
votes
1answer
18 views

How does routing work for product pages?

The Magento documentation says Magento URLs are built like <store-url>/<store-code>/<front-name>/<controller-name>/<action-name>, but I can't find anything about how ...
3
votes
2answers
283 views

Magento 2: How to generate category url with underscore?

I am importing categories from external script. All working fine with import. But with URL KEY Magento is changing value automatically. And I want the url same as I am passing from script. 1) ...
7
votes
2answers
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....
0
votes
1answer
914 views

Magento 1.9.1 - Unable to edit (click) URL Rewrite fields in backend

I'm trying to edit (or redirect) some category menus to other categories. Example, I have two sub-categories called "Compression Wear" (id 60 - /compression-wear.html) AND "Compression Wear" (id 67 - /...
1
vote
0answers
36 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
21 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 ...
2
votes
0answers
34 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 ...
1
vote
1answer
874 views

Magento EE Create Custom Redirect for old URL

I have a question regarding URL redirects on product records in Magento Enterprise Edition 1.14.2.1. I am noticing that URL redirects are not being created when a product's URL key is changed, even ...
2
votes
2answers
66 views

URL Rewrite Duplicates and Product URL

My headache begins with a common URL Rewrite issue. I am running Magento 2.3 and rely heavily on an extension called Firebear Import / Export to handle my suppliers CSV feed imports. Let's say in ...
0
votes
0answers
4 views

Magento 2 Create Url Rewrite from configuration system.xml

How to create url rewrite from system.xml configuration for particular store view when saved. Best!
0
votes
2answers
73 views

Magento 2 - 500 Internal Server Error

sorry for creating another 500 Internal server error thread but I couldn't find any solution for my problem yet. We have a managed server from German provider 1&1 and we have a running magento ...
0
votes
2answers
1k views

Magento product url gives 404 page

I am running in to weird issue.When i try to access the product url its going to 404 page.Its happening for for some products. I tried to reindex,clean cache ,removed the url from url key in admin ...
0
votes
1answer
15 views

Headless Magento 2: Need custom URL instead of domain/products/:SKU

Fairly new to to magento. I am going for a headless approach, where I have created product listing pages with URLs as: www.domain.com/products/:productSKU I want to change this to something like: ...
2
votes
1answer
898 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 ...
0
votes
1answer
42 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
22 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....
2
votes
1answer
33 views

Url rewrites not matching URL key

this store is in Magento 2.3.0, and I'm running into an issue regarding url rewrites/keys. On the product, I've set the url key as example-key, but only example-key-extra-stuff works -- that being ...
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 ...
0
votes
1answer
52 views

Magento 2.2: Base URL removed when attempting to access admin login

Was having problems yesterday with my server, which the community seemed to think were irreparable, so I decided to rebuild it. Set up a LAMP stack with Redis and re-installed magento. Used my ...
0
votes
1answer
230 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
2answers
2k views

Magento2: Remove Category path from product URL is not working

I have a Magento2 store. I don't want to add the category path into products URLs for that I set “Use Categories Path for Product URLs” as "NO" in magento2 Admin, but It still add the category path to ...
3
votes
1answer
2k 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....
6
votes
2answers
6k 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 ...
0
votes
1answer
1k views

Add custom product attribute to URL product view

I have created an EAV entity (that represents the brand) which can be associated to a product as an attribute. Now, I would like to add the name of the brand to the product view URL. I would like ...
1
vote
1answer
67 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, ...
1
vote
2answers
33 views

Magento 2.1 Redirect through htaccess

I am unable to 301 redirect URL like baseurl/blog/international%20enviroguard%20re-branding%20-%20faqs/ to baseurl/blog/international-enviroguard-re-branding-faqs through htaccess. The page is ...
1
vote
1answer
23 views

Category name on product url still working after “Use Categories Path for Product URLs” set to no

"Use Categories Path for Product URLs" set to no on admin panel But everytime I create a new product, it creates rewrite also for category/product url So both of them work: example.com/category/...
0
votes
0answers
38 views

magento 2 category url_rewrites issue

I am using Magento 2.3 when I create new category and check url_rewrite and front end that url generate like this domain.com/parent.html/subcategory.html instead I need url like domain.com/parent/...
100
votes
13answers
66k views

Magento core_url_rewrite table excessively large

I've noticed a large amount of reports that this table itself can become extremely cluttered, I'm running a site with ~5000 SKUs and ~250 categories (single-store) and a resultant core_url_rewrite ...
0
votes
2answers
3k views

Multi website and multi store view with custom url in magento 2

I have a magento 2 installed and configured the following: 1) default website with 1 store view called us_en 2) eu website with 1 store view called eu_en When I change base url to store view like ...
3
votes
1answer
100 views

Magento 2 - Get URL data by request path

I have gathered URLs from sitemap.xml now I need category ID against category URL and Product ID against product URL. I want to do it by getting URL data from url_rewrite table In Magento 1.9 we use ...
0
votes
1answer
2k views

Magento 2 - URLs trailing slash redirection

I configured my Magento 2 store to ends with trailing slash. This work great. But when I browse the same page without trailing slash, it redirects to a 404 error page, and not to the trailing slash ...
1
vote
2answers
576 views

Rewrite ?cat= to seo friendly URL

(Magento) On a category page I can filter products by other categories using the ?cat=... parameter. This works just fine (In combination with Amasty improved navigation). But I would like to make the ...