Stack Exchange Network

Stack Exchange network consists of 175 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.

5
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://...
5
votes
0answers
154 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
47 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
0answers
278 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/...
3
votes
0answers
50 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 ...
3
votes
0answers
274 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
0answers
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'])...
2
votes
0answers
48 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
32 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
42 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
0answers
63 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
36 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
181 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
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
190 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
25 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
81 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
299 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
0answers
136 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
556 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
0answers
150 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
129 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 ...
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
18 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
0answers
32 views

Imported products and categories system urls return 404

We are setting up import of products and categories from suppliers XMLs. The idea is to have it automatic and we have successfully imported products and automatically generated categories using this ...
1
vote
0answers
10 views

Migrating from M1 to M2: need to / want to rename multiple attributes

in our mission to migrate from M1 to M2 we need / want to rename attributes that we have named say 7 years ago. So product attribute 'manufacturer' would become 'brand' and product attribute '...
1
vote
0answers
18 views

Localize contacts URL store wise

In Magento 1.9, I have 3 stores(English, Dutch, French) in 1 one website. I am trying to localize contacts url to store wise like below. Magento's Default. English Store : www.example.com/en/...
1
vote
0answers
37 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
1
vote
0answers
18 views

Sub Category - Load By Attribute (name) URL issue, how to resolve?

Mage::getModel('catalog/category')->loadByAttribute('name', $val)->getUrl(); The above code won't work correctly in my PHP code when I have multiple categories & sub-categories with the same ...
1
vote
0answers
80 views

Magento 2 - add custum attribute to urlrewrite programmatically

I am trying to regenerate the urlrewrites on magento 2.3. They are now created by the pruducts name /artist.html but i would like to to add some custom attributes. /astist-title-format.html to ...
1
vote
0answers
24 views

Magento1.9 URL Issue for Duplicate Name Products

I am facing an issue where On my store more than 2 products have the same name things are going fine on a low range of products, As Magento will update URL on saving in the catalog_url_rewrite table ...
1
vote
0answers
145 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 ...
1
vote
0answers
234 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 ...
1
vote
0answers
77 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?
1
vote
0answers
233 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
0answers
14 views

magento 1.9 have issue with URL Rewrite Management and backlink from the same domain

I have a jewellery store site "finestgold.ca/store", there are approx 800 products, but in the URL Rewrite section it is showing "41701 records found" do I need to worry about site SEO ? if that much ...
1
vote
0answers
121 views

sort options Url parameters '?' change to '&' so 404 error

in my category page, sort options url (Position, Name or Price) are https://www.mywebsite.com/category/subcategory?dir=asc&is_ajax=1&order=position&type=195 https://www.mywebsite.com/...
1
vote
0answers
255 views

Magento 1.9.3.6 duplicated url rewrites after each reindex

In my Magento 1.9.3.6 installation I have a duplicate url problem. At every reindex, all the url rewrites are regenerated like magento didn't read that they were already created. Regenerating the ...
1
vote
0answers
20 views

What is the best way to redirect 2500 links after relaunch?

We have rebuilt a shop in Magento 1.9. The old shop was a "modifed shop". Unfortunately, all links within the page structure change. like this: Main Category myshopdomain.com/Category:::121_428....
1
vote
0answers
28 views

Hunting down a redirect / rewrite issue. How many rewrites should there be for a product?

For SEO value I understand that Magento will redirect system ID urls to pretty urls. I'm trying to find out if there is something wrong with my db. There are several system urls that have 5 different ...
1
vote
0answers
211 views

404 Errors after turning on SEO URL and Secure URLs

Initial Setting: HTTP only SEO Url Turned off What was changed: Turned on SEO Url to remove index.php from Url Turned on SSL for Admin and Frontend. Issue: 404 Error messages Unable to login to ...
1
vote
0answers
17 views

Magento 2: Custom url for state=onsale produtcs

Right now I'm able to see all my on sale products here: http://wwww.domain.com/products?state=onsales (products is a category that lists all products) I would like to change that url or create a ...
1
vote
0answers
259 views

Magento 2.1: Modifying root .htaccess for URL rewrite rules

Attempting to add some rewrite rules to the root .htaccess for my Magento 2 installation, but additions to that file are not reflecting. What I want to achieve is to create two rewrite rules. One for ...
1
vote
0answers
262 views

Magento 1: Move Domains to subfolder

I have a multi-store setup with the german domain running on .de and the english on .com. Now I need to move them both together to the .com domain utilizing the store codes in the urls. www.example....
1
vote
0answers
2k views

Something went wrong while saving the category Magento 2

There are many threads with almost the same title, but i could not find a solution for it I have a following structure in magento 2 for categories Among them i can save all the categories apart ...
1
vote
0answers
320 views

How to add prefix before category url in Magento2?

My all categories are assigned in default category. Now I have urls like that: www.magentoShop.com/category_name/ And I want to add prefix "something" it should look this way: www.magentoShop.com/...
1
vote
0answers
53 views

Programmatically created product Urls are not generated for french storeview in Magento 2

I am trying to create a product programmatically in magento 2.1.3. I have 2 storeviews, be and fr. when I create product, product URLs(in URL rewrite) are only created for 'be' storeview, not created ...
1
vote
0answers
30 views

Base URL is HTTPS But, All the Canonicals are HTTP how to Fix this

I've modified my base URL and moved to HTTPs from HTTP but, My website canonicals are still HTTP. So, tell me how I can resolve this issue so, that the I can stop the 2-page indexing in Google search ...
1
vote
0answers
268 views

how to include category id in url on category page?

I have one query regarding category id.I need to include category id, in category list page. Currently it should be like this : http://magento2.shelltag.com/women/bags/backpacks I want to show like ...
1
vote
0answers
1k views

Product Url Key not working rewrite and category say url key specified store already exists

The product url keys not working, sometimes they do suddenly it goes to the original url like: https://www.takoda.shop/nl/catalog/product/view/id/5/s/dog-tag-halsketting-messing/category/5/ and not ...