Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to remove only sub-category from URL key Path in Magento 2?

I need only remove sub-category in URL key. I want to put only parent category in URL path Currently path is : http://localhost/noida-products/shop-by-category/criket-kit.html Require path is: ...
2 votes
1 answer
1k 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 ...
3 votes
1 answer
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....
0 votes
1 answer
23 views

I want to change url of wishlist to favourites using url rewrite

I want to do URL Rewrite of wishlist link to favourites but don't know how to do it if anyone can mention the whole process it will b great. I really appreciate any help you can provide.
0 votes
0 answers
13 views

Use category path for product url in magento 2

I have done the settings for Including the category key in the products url, which works fine https://prnt.sc/X0uTHHPyff0J . However , for Related products it is still taking the old url and not the ...
0 votes
0 answers
6 views

Magento 2.4.2: Wrong Product URLs are being generated for some products

I am having an issue where URLs of some products are being generated like this: I have tried regenerating them using: https://github.com/olegkoval/magento2-regenerate_url_rewrites but it did not work....
6 votes
2 answers
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 ...
0 votes
2 answers
5k views

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

I have a magento 2 installed and configured the following: default website with 1 store view called us_en eu website with 1 store view called eu_en When I change base url to store view like ...
8 votes
4 answers
2k 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....
1 vote
1 answer
5k 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 ...
2 votes
1 answer
1k 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 ...
0 votes
1 answer
3k 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 ...
0 votes
1 answer
31 views

How to use hypen symbols in custom module controller url in Magento 2?

I have form input where user can enter postcode. When they enter postcode i am redirecting other page (controller url-popup/action/index) and i showing postcode inforation in that page. But i need ...
0 votes
1 answer
1k views

How can i rewrite my category url for redirect new site

How can i configure category url rewrite management. When user click category it leads to another site.
0 votes
1 answer
38 views

How to change the custom controller url to fancy url in magento 2

I created a page using conroller with the URL - "mani.magento.com/demo/action/index" but in the live site that page URL looks like this "mani.magento.com/our-service/hospital-meals/...
0 votes
0 answers
12 views

Magento 2.4 Redirects - Bulk Import using XML?

I have almost 800 links coming up in Google 404 that I need to add redirects for. I see how to add them manually one at a time but I do not see the functionality for a bulk import unless I am missing ...
4 votes
2 answers
983 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 ...
0 votes
2 answers
1k 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 ...
2 votes
1 answer
1k 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 ...
1 vote
1 answer
14 views

Url redirect 2 times when access from www

I'm trying to investigate the issue redirect when using www and HTTP link. Currently, if I use HTTP link with www.domain then it will redirect 2 times 301 > 302 > 200. I check via site: https://...
3 votes
1 answer
2k 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'])...
4 votes
3 answers
2k 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 ...
5 votes
5 answers
24k views

Magento 2 is generating the product url with catalog/product/view/id instead of product name

We are having a strange problem in our Magento 2 webshop. Our webshop has different ways of generating the product url. So some of our products just show the product url as it should be /name-of-the-...
0 votes
0 answers
12 views

4th level category page redirects to 3rd level category page

We have Categories to the 4th level in our Magento Store and the site's main URL is set without www. So now when we go to the 4th level category and put www with site URL, it redirects to the 3rd ...
0 votes
0 answers
48 views

Magento 2 URL redirect Duplicate Content

I have a website with one store and several store views on Nginx (Magento Commerce Cloud). I am using store codes in the URL. Unfortunately, when the pages are called without store code in the URL, it ...
2 votes
1 answer
1k views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
0 votes
0 answers
23 views

URL Rewrites generate blank product url name with arabic name

I am facing an issue in product url which generates blank "Request Path". This will happen when I tried to add arabic product name along sku number in URL Key(SEO section) in product form in ...
1 vote
1 answer
1k views

Magento 2 - URL rewrites - check if target path exists in URL rewrite management

I need to redirect my customers when a 404 page is thrown. To achieve this, I need to check whether a particular target path exists in the url rewrite management table. For example : if my target ...
2 votes
6 answers
24k 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" ...
1 vote
2 answers
4k views

New url key is not working for product after update in magento 2

I have product XYZ and URL key for this product is www.mysite.com/xyz I have updated the value of URL key product from xyz to xyz-new. When I try to access url www.mysite.com/xyz-new. It gives me ...
0 votes
2 answers
1k views

Magento 1 get product or category id by url string

I have url string. I need to detect if url belongs to product or category and get product or category id. I tried this, but it won't work: $vPath = 'http://dev.magento186.com/default/example/...
1 vote
1 answer
1k 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 - /...
2 votes
1 answer
2k 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 ...
4 votes
2 answers
2k 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 ...
0 votes
0 answers
9 views

Rewrite Rules are not working for CMS Page URL

I have added new Rewrite Rules for two CMS pages to redirect from one to other, For Example: In Marketing > Seo-Search > URL Rewtite added one rule: /shipping to /shippment But still not ...
0 votes
3 answers
1k views

how can i prevent replacing “&” with “&” in magento url

When i click on add to compare link on product listing page my url is changing from magento.com/personal-care/face.html?dir=asc&order=Normal to magento.com/personal-care/face.html?dir=asc&...
0 votes
1 answer
260 views

Magento 2.4 move to /pub/ folder, redirects in .htaccess now prepend /pub/. Where are rewrite rules supposed to go now?

So, I have a rewrite rule that is supposed to redirect an old URL to a new one: RewriteRule ^(.*)/-/manufacturers/(.*)$ $1/manufacturers--$2 [R=301,NC] This is located in the .htaccess for the domain (...
0 votes
0 answers
25 views

Magento 2 UTF-8 URL Rewrites

When will Magento 2 support utf-8 characters in URL rewrites for categories, cms and product pages? It will improve SEO by a thousand miles. I really want to use Cyrillic letters in my URLs. Is there ...
0 votes
0 answers
23 views

My product URL is becoming the same as title. Can't optimize product URL

In the beginning, Thanks in advance. I know there are so many experts in Magento. Could you please help me? I am facing a new issue in my Magento ver. 2.4.3 When I upload a product initially I don't ...
0 votes
1 answer
241 views

Redirect .html to none html on URL

I tried to remove .html from my categories from admin panel and it works. now I have example.com/test , but example.com/test.html is 404 now. how can I redirect all .html urls to non html one? should ...
0 votes
1 answer
970 views

How auto-generate product and category url in magento

In magento 1 using indexes, we can generate product and category url but in magento 2 using indexes we cannot do this. I have so many products and category so how can i do this?
0 votes
1 answer
370 views

Magento 2 - new store view - category url's not working

I created a new store view with code app. I made a new subdomain for it called app.example.com, if this Url ist getting loaded, then the MAGE_RUN_CODE changes to app, otherwise it is default. ....
0 votes
1 answer
95 views

How to rewrite url with query string in magento 2

I want to rewrite url like: https://www.test.com/custom-parent-cat/sub-cat/10-12-14-17-19.html?cat=101 to https://www.test.com/custom-parent-cat/sub-cat.html Please help me to achieve this. Thanks
4 votes
2 answers
11k views

Magento2 Product Page 404 Error Caused by URL Rewrite Not Working As it Should

We have a 404 issue on all product pages. Category pages showing fine as they should. Having imported circa 4000 products directly into our Magento2 store database and uploading images directly to the ...
1 vote
1 answer
31 views

$product->getProductUrl() returns URL without category prefix

I tried to enable the category prefix from admin STORES >> CONFIG >> CATALOG >> CATALOG >> SEARCH ENGINE OPTIMIZATION. It is working pretty well on the category page. I am ...
1 vote
1 answer
951 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 ...
1 vote
1 answer
163 views

Unique constraint violation found when editing category Name / URL key in 2.4.3 / having url_path

We are getting errors like SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'themen/redacted/redacted.html-1' for key 'URL_REWRITE_REQUEST_PATH_STORE_ID', query was: INSERT INTO `...
0 votes
1 answer
93 views

How to remove only sub category URL from magento

I am using Magento for my eCommerce website My current URL structure is: example.com/parent-category/sub-category/page I want a solution for the URL to be changed to : example.com/parent-category/page ...
1 vote
1 answer
1k views

Redirect category to cms page magento 2

I have created a Category which is in my main menu. I wanted to redirect it to a CMS Page when click on it. More specifically: The Category's URL Key is apps.html The CMS Page's URL Key is apps ...
4 votes
5 answers
11k views

How to redirect a category page link to CMS page link in Magento 2

I want to redirect my category link to some cms page. Could anyone tell me how to do so? Any help will be appreciated. @Kho TruongDinh As you specified, I have used URL rewrite, but it did not work ...

1
2 3 4 5
16