Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
0
votes
2answers
949 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
2answers
2k 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 ...
1
vote
4answers
15k 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" ...
0
votes
0answers
14 views

How to append a string “/xyz” to the magento2 URL

I'm setting a Magento docker developer environment and it has the base URL as "http://magento2.docker/". Now I have a request to append "/xyz" to url and make it "http://...
3
votes
4answers
8k 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
0answers
32 views

Product URL rewrite in Magento 2.4.1 does not work as expected when adding a product to another store view

When moving a product to another store view in Magento 2.4.1, the new store view product URL doesn't use URL rewrite? example1.com/kilramar/smala/pro-basic becomes example2.com/catalog/product/view/...
1
vote
1answer
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 - /...
1
vote
1answer
21 views

Magento 2 URL Key field would generate a URL that already exists

I'm trying to move my Category Wincomm but I keep getting this message. I have 2 Store Views and I have changed the url using Marketing -> URL Rewrites but the message keeps returning. I've also ...
4
votes
3answers
10k views

Magento 2 Category url rewrite is not working

After migration by using ubertheme, my category url is not working. Its showing all category urls are like below http://domain.com/catalog/category/view/s/trouvez-le-fauteuil-ou-canape-chesterfield-...
7
votes
5answers
17k views

How do you generate URL rewrites in Magento 2

Is there a way to force Magento 2 to redo all of the product/category urls? The majority of the site is fine with urls such as category-name/product.html but a few categories refuse to conform to the ...
2
votes
1answer
995 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
70 views

Re-direct Category Menu item to different URL

I want to redirect my Menu sub item to a different URL how can I do that? Like Blog Menu Item to Dropbox.com I want the Blog menu to be redirected to : a seperate URL to new website for example: www....
8
votes
3answers
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....
0
votes
0answers
11 views

Creating URL Rewrites on first descendant

I have a marketplace and I want to provide my merchants a way to get a URL for their stores. For example: xyz.com/mystore My question is how to do it safely. I know I can check the target paths to see ...
1
vote
2answers
22 views

how to get front name and controller name with hyphen in magento 2 url?

I want to get URL like this after domain URL domainname/hellowword/example-index
0
votes
0answers
14 views

How to use an exclusive domain in a specific category page?

I'm using Magento 2.4 and I want to offer to my partners a page with products in a new domain and I think I can do it assigning a domain to some specific categories, instead of creating many stores. ...
6
votes
2answers
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 ...
3
votes
1answer
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....
1
vote
1answer
937 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 ...
4
votes
2answers
331 views

How to block cpanel link of my magento site

I had created an ecommerce website named http://example.com. I want to block my cpanel link for users who are accessing my website. Link is example.com/cpanel. If any I.T. specialist user or general ...
0
votes
1answer
104 views

Magento 2 : Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails while saving a duplicate category

I have installed Duplicate categories Extension in the client site(Magento 2.3.2), while duplicating categories I'm facing this error, {"0":"SQLSTATE[23000]: Integrity constraint ...
1
vote
1answer
4k 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 ...
0
votes
0answers
25 views

How to change Filter Url in Magento 2

How to change the URL of the Magento 2 store when Filter is applied. When I apply any Filter the URL looks like https://jpm2.mydemoweblink.com/watches/alpina?jpf_gender=6780 where I want to change the ...
0
votes
0answers
26 views

Magento 2 - How to check if custom route exists

It's quite straight forward to check if a request url exists in a store scope via url_rewrites. However, I'm wondering if there is a way to check if a custom route exists (as they don't have an entry ...
27
votes
11answers
49k views

How to delete and regenerate URL rewrites in Magento 2?

I have recently created 2 additional store view on magento 2 store. Now the url of category and Products are not for those stores is not proper Eg: http://example.com/catalog/category/view/s/pouches/...
3
votes
6answers
14k views

Magento 2: How to renew the category URL rewrites?

I cannot get Magento 2 to renew URL rewrites for categories. I was forced to clear url_rewrites table after some weird problems happened after importing categories and products. Now I get something ...
5
votes
1answer
3k views

what is the factory for url rewrites?

If you want to create url rewrites programmatically what factory should you use? Tried a few of them but none have the right methods (like setStoreId, save, setTargetPath and setRequestPath): ...
0
votes
0answers
8 views

simple redirects using Marketing > URL REWRITES not working properly

Sometimes when people click on a search result that has a broken URL like https://www.example.com/catalogsearch/result/ or https://www.example.com/catalogsearch/result/?q= they will get taken to a 404 ...
0
votes
0answers
38 views

Magento2 How to redirect category url to external link?

I have a requirement wherein I need to redirect multiple categories to external site's respective category pages. For the same I have created categories in magento. Whenever we create a category in ...
0
votes
3answers
785 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
0answers
19 views

Magento2 Micro Website - Adding Value from Variable in Store URL

I want to achieve a Feature on Magento2. I want to add a {URL Key} in Store URL, This URL key can be picked from a separate store info table. I have approx 400 store info and want a separate URL for ...
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 ...
0
votes
1answer
26 views

Magento 2 - How to regenerate url_rewrite table?

I truncated the whole url_rewrite table from phpMyAdmin. I thought that it will regenerate if I execute php bin/magento indexer:reindex but it doesn't. How can I fix it?
0
votes
2answers
4k 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 ...
4
votes
2answers
840 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 ...
4
votes
2answers
1k 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 ...
1
vote
1answer
283 views

change url rewrite special character 'ñ' from '-' to 'n'

I have a Magento ver. 1.9.2.4 with friendly url rewrite active. It works, but it is replacing special characters as 'ñ' with '-' and I need to replace them with 'n'. Now if the product is, for ...
0
votes
0answers
13 views

Automatic URLs generated by magento 2 has missing characters

At magento 1 for example, if my category name is "Armação", the url automatically generated for this category is "armacao". The magento 1 automatically did it for special ...
0
votes
1answer
30 views

Multiple URLs getting created for single product

I am an SEO executive and pretty new to Magento. I have got a project in which there are multiple URLs for a single product and all URLs have been indexed on Google. Here is an example of URL ...
0
votes
1answer
898 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
0answers
11 views

Magento2 URL rewrite issue

We have a Magento2 site, which has Product and Category URL Suffix as / not .html But in our catalog_product_flat_1 table, the url_path still contains .html which doesn't seem to cause any issues, as ...
3
votes
1answer
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'])...
0
votes
1answer
21 views

Magento Product URL (rewrite)

I created a new product under category domain.com/product/alpha, and when I open domain.com/product/alpha I can see the product, however when I click the product instead of opening the URL as domain....
7
votes
4answers
24k views

How to redirect a category to another link?

I have an extension in my store that I can upload posts with this and it has a link in the top menu that' name is blog. In the menu, I have a category that's name is News and I want to redirect it to ...
0
votes
0answers
15 views

Magento2: Could not save product “53430” with position 0 to category 1593

Every time during try update category I get issue: Could not save product "53430" with position 0 to category 1593 When edit product and try save I see: The value specified in the URL Key ...
1
vote
0answers
24 views

404 and non SEO-friendly URLs in HTML docs despite having core_url_rewrite entries

About three months ago, I was migrating a Magento 1.9 app to a new server and truncated the core_url_rewrite table due to an error while indexing. Everything's been fine, though I recently found out ...
1
vote
1answer
763 views

Changing URL of Wishlist without change to core code

I'm working on Magento CE 1.9.2.2 site and want to change the URL to the Wishlist that comes with Magento. I tried to copy app/code/core/Mage/Wishlist/etc/config.xml to app/code/local/Mage/Wishlist/...
0
votes
1answer
733 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
1answer
27 views

how to convert custom page url like pageurl.html in magento 2?

I have a custom module page url like this: www.example.com/style/index/content/id/19/ I want to convert this url like this: www.example.stylecontent.html with same content. I have tried url rewrite ...
1
vote
0answers
36 views

Magento 2 sitemap url does not work after we add any rewrite rule in root htaccess file

Our sitemap URL works fine at /sitemap/sitemap.xml but as soon as we add any rewrite rule in root .htaccess file then it gives status code 404 page not found. RewriteRule ^abc/(.*)?$ /media/doc/files/...

1
2 3 4 5
16