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.

2
votes
1answer
513 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
232 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
4k 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
0answers
50 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
1answer
43 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
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
1answer
27 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
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
182 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
931 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
191 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
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 ...
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
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
1answer
238 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
168 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
159 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
78 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
871 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
188 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
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
58 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
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 ...
2
votes
0answers
90 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
112 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
143 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
996 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
3answers
2k views

Removing Magento Store URLs Param ?__store=

Magento's store URL wuery param is really annoying me and I'm not sure of the point of it when there is a store cookie for holding this info, also it only appears when you first visit a site or switch ...
1
vote
2answers
693 views

Magento 1.9 : How to change URL /customer/account/login to /kupac/nalog/prijava/

What is the easiest way to change the /customer/account/login/ URL to /kupac/nalog/prijava/ but to preserve the functionality too? I will also need to change /product/id/X to proizvod/X where X ...
1
vote
1answer
3k views

Unable to access magento without /index.php/ in the URL [duplicate]

I have fully downloaded a magento 1.9.1 instance and it's DB which was running on a server into my computer and trying to get it up and running using WAMP server. everything looks fine except that I ...
1
vote
3answers
383 views

Magento (1.9) Url rewrite to requested path

In Magento URL rewrite i create a custom redirection for login URL'customer/account/login' to login.html But when i click the login link, its again redirect to the 'http://URLBASE/customer/account/...
1
vote
3answers
2k views

Magento HTACCESS query 301 redirect all but admin

Hi hopefully someone can help. I have added a 301 redirect to change from an old domain name to a new domain. The magento build is still on the old domain also (but with no follow / no index) I ...
1
vote
2answers
10k views

How can I get the correct product url based on store view?

I have 2 store view: www.example.com (EN Store) www.example.it (IT Store) and I have 2 different urls that point at the same products: www.example.com/car-honda-civic.html (<--- I want obtain ...
1
vote
3answers
1k views

Problem with rewrite for custom module

I have created a module to disable user registration (mostly following guide here https://stackoverflow.com/questions/2959131/how-to-disable-frontend-registration-in-magento/25186894). Unfortunately, ...
1
vote
1answer
400 views

Remove Multiple Product URL Rewrites

In my CE-1.9.0 store my products currently create the following url rewrites: http://example.com/product-name http://example.com/category/product-name http://example.com/another-category/subcategory/...