Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 views

How to fix URL rewrites massively via SQL?

I had migrated my store from Magento 1 and I'm having many URLs that contain .html.html in the final of the string. I want to update all my 88187 URL rewrites, replacing .html.html to .html I ...
0
votes
4answers
1k views

How to remove trailing slash from Magento 2 url

I have installed ssl in my Magento 2 store and configured base url to the https version. But when accessing http version, Magento redirecting url with appending trailing slash. For example: My ...
0
votes
0answers
18 views

Magento 2.2.6 Product Pages Not Opening after upgrade

The product detail pages on my site are no longer opening after upgrading from magento 2.2 to 2.2.6 There are no error rather a catalog search results page is loading instead http://mydomain.co.uk/...
0
votes
0answers
7 views

Adding brand name in product pages urls Amasty Magento 2 [on hold]

I want to add the brand to the product pages URLs, for example: https://thewebster.us/shop/women/striped-silk-maxi-dress-and-jacket.html and it should have a concrete 301redirect mapping to handle ...
27
votes
4answers
54k views

Correct way to change the magento 1.9 admin url

Correct way to change the Magento 1.9 admin url anyone can provide me the correct way. I see a lot of different suggestion online.
3
votes
2answers
3k views

URL Key not changing in Magento 2

I am using Magento 2.2.4, I am having too many Disabled/OutofStock products which are useless. Now the problem I am simply replacing all Disabled/OutofStock products with New Products. I can ...
1
vote
1answer
1k 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
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 - /...
0
votes
3answers
1k views

custom redirect to home page not working in magento 1.7

what iam trying to achieve is : to redirect a cms page to home page; the cms page is accessible by domain.com/home what i need is to redirect to domain/ i had already created a custom url rewrite ...
0
votes
0answers
14 views

Rebuilding rewrites after deletion of products?

Magento 2.2.8 I had 700k products in my store and about 500k were deleted like this: delete from catalog_product_entity where entity_id = ...; That worked. Now I still have over 4.5 million ...
0
votes
0answers
18 views

Magento 2: How to redirect the category url path to custom url (to hit search page url)path

My Requirement: I need to redirect the URL while clicking the main category in the menu For example : From https://penqueen.com/test.html To https://penqueen.com/?q=item_class_pink=Ballasts ...
1
vote
3answers
8k 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
16 views

URL rewrite programatically

I need to rewrite all my category urls. they are more than 600X so it is not possible to set them one by one. how can i set them automatically?
1
vote
2answers
273 views

Magento 2 product attribute filter url rewrite?

I have override url-rewrite router in my custom module,and add my custom rewrite code in override router file. after filter url created like below : http://domainname.com/services.html?manufacturer=...
0
votes
1answer
19 views

what is equivalent of catalog_category_entity_url_key in magento2?

I am trying to find category url keys and I have catalog_category_entity_url_key in magento1, but I do not have it in magento2. how can I find the values?
1
vote
4answers
818 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
2answers
31 views

Issue with Url key change for product in magento 2.3

I changed the url key for the Product https://prnt.sc/p9o8li but on clicking on product it is redirecting to old url. On clicking product it is going to https://ihouzit.com/Timeless-Gin-and-...
2
votes
2answers
2k views

Best practice for multilingual categories and products?

I think it is very important question for setting up a multilingual store with Magento. The main problem here I am facing is URL rewriting for categories names for different language. I have this ...
1
vote
1answer
912 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
2answers
31 views

SEO URLs in custom module

I have a module built in magento 2.1.16 which store details of contacts in database and fetches them on list page and details view page. The contacts are of 3 types Branches (https://roadmaster.com....
1
vote
1answer
588 views

Magento URL Rewrite Management linking Pages to Nav Bar

I am trying to link a CMS page to the navigation bar however under url rewrite management I keep receiving " Request Path for Specified Store Already exists. This is what I've done... 1) created the ...
2
votes
1answer
926 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
0answers
15 views

Magento 2 URL - Category Hierarchy

Currently working on a site with several categories and thousands of products. We want to structure the categories into parent/sub or parent/sub/sub if necessary. I've looked at url rewrites inside ...
0
votes
1answer
32 views

URL rewrite magento 2 admin-side issue

Magento2 - facing issue with below error in admin panel error in console category:1 Uncaught SyntaxError: Unexpected token C in JSON at position 473 at JSON.parse (<anonymous>) at getData (...
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 ...
4
votes
5answers
58k views

Getting 404 Not Found Error on every page except index.php [closed]

Because of some reason my site stopped working. After that I have uploaded the backup which I had created earlier. I am getting a "404 Not Found Error The resource requested could not be found on ...
3
votes
6answers
9k 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 ...
0
votes
0answers
339 views

magento2: Moved magento to new domain ,all urls redirected to old url

I'm using Magento 2 We have moved the site from one domain to another and also changed the folder location one IP address to another IP address. After the change the admin panel is working fine but ...
0
votes
0answers
12 views

Rewrite URL in pagination of categories Magento 1.9

I've tried so many ways to do it, but I can't find a solution. I need to change the parameters in URL when I use pagination. Examples: My url in page 2 is https://www.mysite.com.br/category/sub-...
0
votes
2answers
2k 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 ...
1
vote
1answer
248 views

Magento 2: custom UrlRewrite Controller Router not works with some handlers

I'm creating a module to use custom url rewrites. For this I have created a module and I am using a custom UrlRewrite Controller Router. For testing purpose, I generated the Router below. It works ...
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....
0
votes
1answer
18 views

Storewise product url save programatically in Magento 2

I have 2 different website in my Magento. I want to store different url key for each website. How to store it programatically ?
0
votes
0answers
16 views

index.php rewrite 301 is affecting payments

I've created a htaccess in the root directory to remove index.php from URLs but excluded the user/admin areas. RewriteEngine On RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ ...
0
votes
1answer
1k views

Add custom product attribute to URL product view

I have created an EAV entity (that represents the brand) which can be associated to a product as an attribute. Now, I would like to add the name of the brand to the product view URL. I would like ...
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 ...
0
votes
3answers
602 views

how can i prevent replacing “&” with “&amp;” 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
1answer
33 views

Magento 2.X: Module URL rewrite

Magento ver. 2.3.2 I am writing a Magento 2 module. I'm trying to re-write a CMS page URL: https://www.test.com/url-test/cat1/cat2/cat3/ https://www.test.com/url-test?path=/cat1/cat2/cat3/ I have ...
0
votes
0answers
20 views

Magento2.3 url_path is different from url_key

On my website we sell a number of configured products, and suddenly we've been getting a large number of our products with the url_path value (the actual URL) getting changed to the key of a child ...
0
votes
2answers
3k 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 ...
0
votes
2answers
33 views

Magento 1.9 rewriting base store url for multiple websites

I have three different websites and within one website three stores on a single Magento 1.9 installation. 1. www.domain1.com 2. www.domain2.com 3. www.domain3.com Each domain contains three ...
0
votes
0answers
27 views

Magento 2.3 Configurable Assiged Simple Product 404

I'm using Magento 2.3 version. I have configurable products a normal product. both are works fine but the simple products assigned to configurable products getting 404 errors. The configurable ...
0
votes
0answers
30 views

Ur Rewrite interesting problem Magento 2

I need to create URL rewrite for /vendor_module/product/test/id/666. In rewrite, I want to change id/666 to productTitle.html. But when I created it I faced an interesting problem: Magento sees "...
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 ...
1
vote
2answers
617 views

Rewrite ?cat= to seo friendly URL

(Magento) On a category page I can filter products by other categories using the ?cat=... parameter. This works just fine (In combination with Amasty improved navigation). But I would like to make the ...
0
votes
0answers
18 views

What class is responsible for adding the category url suffix to the URL?

I need to prevent the category URL suffix from being added to a select few pages. The suffix is set to .html, and I need it to be that for 99% of category pages, but the issue arises when trying to ...
0
votes
2answers
28 views

Multiple Websites ( Separate Domains) on single Magento Instance (Problem: New Domain , routing to first website instead of new website )

I am working on a Magento 2.2.7 running on Apache/Linux/Cloudways. Before I started working here, three websites were already setup to run on a single magento instance. Microbattery.com , ...
1
vote
3answers
3k views

URL was already generated for an item with SKU. ERROR

I have problem when trying to import products via CSV i get this error: Url key: '******' was already generated for an item with the SKU:'*******'. You need to specify the unique URL key manually en ...
0
votes
1answer
13 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
4
votes
2answers
929 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 ...