We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

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

Magento url rewrite issues - all pages without www redirect to homepage

Every page without w w w redirects to the homepage. Pages work normally with the w w w & the homepage redirects from non w w w to w w w. (I want w w w only on the website) I have tried changing ...
2
votes
1answer
150 views

Removed parent category path - New URL's not showing up in Google search results

Last month we removed parent category path from the sub category URL's. After that we changed the sitemap file with new URL's and submit it to the webmaster tools for indexing. For Ex: www.example....
2
votes
1answer
953 views

Moving Categories

What's the best way to move a large number of categories? For example moving a level 2 category and all its children to being a level 1 category with level 2 children: Level 1 - Level 2 -- Level 3 --...
2
votes
2answers
743 views

how to use subdirectories in the url-key

I need to save a subdirectory within the url-key for products and categories but the rewrite rule from Magento still converts the "/" into a "-". Has anyone a idea to solve this "problem"?
2
votes
1answer
529 views

magento parameter url of currency

I'm new to magento, have been using creloaded, figure it's time to move on to a new e-commerce platform and found this charm at last. My website have 6 languages and 6 currencies, the base currency ...
2
votes
1answer
62 views

Redirect help on .htaccess file

I want to put a Magento Redirect rule to change the Blog URL. FROM: http://site.com/blog/cat/pets/page/2/ TO: http://site.com/blog/pets/page/2/ So, basically I want to remove the /cat. Also, there ...
2
votes
1answer
237 views

Exclude parent category from child category URL if parent category is empty

My category/subcategory relationships are structured from a cosmetic point of view for the menu: Root->Parent (no products)->Cosmetic Category (no products)-> actual subcategory (products) I want my ...
2
votes
2answers
5k views

Redirect product url with category path

I had a store with category path turned on for product urls. After realising that, it creates duplicate content issues in SEO, I turned it off. Since product urls (with category path) are already ...
2
votes
1answer
2k views

EE 1.13.1 Url Rewrites Not Working.. Why will they not index?

This is a clean install of EE 1.13.1 not an upgraded site. I am facing this issue with a group of skus in my catalog... www.MYSITE.com/catalog/product/view/id/189576/s/**url-key**/category/293/ I ...
2
votes
1answer
3k views

Google sitemap.xml generates product url's without category path

I generated an sitemap.xml file through the Catalog > Google sitemap area. What I experience is that the product url's in the .xml appears to be incorrect url-path'wise. So a product url appears as: ...
2
votes
4answers
1k 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
138 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
1answer
61 views

Remove '.php' from url redirect [closed]

I have an URL like: base_url/cloths/mens.php now when we click on this above URL then it should redirect to: base_url/wp/cloths/mens/ here we want to remove .php extension from URL after ...
2
votes
0answers
76 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
37 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
133 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
41 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
283 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
87 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
340 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
930 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
139 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
261 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
0answers
173 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 ...
2
votes
1answer
165 views

Magento EE 1.13.1.0 numbers showing in Category URL_KEY

I am using Magento Enterprise Edition 1.13.1.0 Running Multiple Store in Following Order: Store 1: English Français Store 2: English Français Store 3: English Français Main Store: Default ...
2
votes
1answer
85 views

Category url rewrites corrupted

I'm getting corrupted urls in enterprise_url_rewrite that look like this: category/subcategory.html-274 Note, the number is after the suffix. When I reindex the url_redirect process, the number ...
2
votes
1answer
944 views

Reset URL Keys for all products to “Use Default” for all store views

I've got 2 store views, recently I noticed that for some reason (either by design or by a bug) that each product has a unique URL KEY for both store views. It is setup in the following way: Default ...
2
votes
1answer
200 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
62 views

Create new product with same URL as deleted product? [closed]

We had to delete a product and re-add it because we needed to remove a configurable attribute but now when I try to add the new product and use the same URL it generates a Page Not Found error. http:...
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
0answers
93 views

How to create Dynamic url rewrite in magento with config.xml [duplicate]

I need to rewrite my url. my current url is below. http://example.com/milano_theme/magazine/index/archive http://example.com/milano_theme/magazine/index/show http://example.com/milano_theme/...
2
votes
1answer
1k views

Rewrite magento catalog search url using xml [closed]

I need a rewrite rule for catalogsearch to rewrite url from : localhost/magento/catalogsearch/result/?q=product TO: localhost/magento/?q=product How to write rewrite in xml please help me.
2
votes
1answer
115 views

Certain short strings in URL prefix causing 404 [closed]

OK, so, been scratching my head all day with this one. Essentially - I have a Magento installation which sits off the back of a WordPress installation: localhost/ [this is where WordPress sits] ...
2
votes
2answers
1k views

magento remove /home from url

I am trying to configure how to redirect my Magento website from "www.mywebsite.com/home" to base url "www.mywebsite.com", it always redirecting to www.mywebsite.com/home RewriteEngine on RewriteCond ...
2
votes
0answers
821 views

URL Redirect does not appear in catalog [closed]

i've created a url redirect for when the user types womens/clothing/activate/[ITEM] they can get catalog/product/view/id/[ITEMID]/category/[CATID] when i use my new url redirect it works fine however ...
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
2answers
343 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
2answers
1k views

Too many URL Rewrites

As you can see in the attached image, foreach product in my store I have too many rewrite rules. I would like to have only one rule with the following syntax: mydomain.com/product-category/product-...
1
vote
2answers
3k views

Catalog URL Rewrites - Index Management - Stuck in Processing

Magento 1.9.3.1 - Catalog URL Rewrites - Index Management - Stuck in Processing. I have had this happen in the past on earlier versions of Magento and I have been able to get one of the fixes already ...
1
vote
2answers
2k views

Remove /home url from sitemap and url site structure

Remarkably simple problem I have that I'm not finding a simple solution for. Essentially I have a duplicate url issue with a Magento site's home page. I have in the url structure the below: www....