Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
0
votes
1answer
42 views

Magento 2 Change Url Key on new product save

How can I programmatically change URL-key on product save? I need url-key as a first brand and product name (/brand-productname)
0
votes
1answer
754 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
1answer
105 views

Level 4 category URL redirects to Level 3

In some categories of my Magento webshop I have 4 Levels in my menu. The problem is that every Level 4 category menu item is being redirected to the Level 3 Menu item on top. I've already tried empty ...
1
vote
1answer
880 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 ...
1
vote
1answer
19 views

How to translate a url automatically in Magento 2 community?

I have got two websites (one in french, the other one in spanish). I have set up two websites and not view stores because selling prices are different. The main website is the french one. 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 ...
1
vote
1answer
132 views

Magento 2.3.4 Could not save product “id” with position 0 to category (id of category)

I have this strange issue with magento 2.3.4. although I have already this patch Magento official patch which claims that it solve this I keep having this issue with duplicate urls in my database. ...
0
votes
0answers
14 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 ...
1
vote
0answers
6 views

Magento 1 custom url rewrite gives 404 issue

From the layer navigation, i have a couple of attributes. After i click my url looks like: brand/brandValue.html?productAttribute=productAttribute1 What i want to achieve is to have that url look ...
3
votes
4answers
6k 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
924 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/...
0
votes
1answer
772 views

The value specified in the URL Key field would generate a URL that already exists

I created category with url key name is "xxxxx". I have changed that category url key to "YYYYY". INow i dont like that url key for that category. Again i changed the url key to "xxxxx". It throws "...
0
votes
0answers
12 views

URL rewrites duplicate problem

I get an error like: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'hracky/elektricke/bburago-range-rover-sport-black-d5848030-evoqu' for key '...
0
votes
0answers
15 views

302 redirection issue

My website was initially http later I have updated it to https. some of the Urls when hit as http://www.testsite.com/testfile.php?id=3456 it will redirected to the home page of the site with 302. ...
0
votes
0answers
31 views

Magento 2: I need to remove .html from all product page url

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 Product URL Suffix. I have already ...
0
votes
0answers
12 views

Magento 2 - Bug for url rewrite of subcategory

In my site in Magento 2.3.5 p1 the URL Rewrite of the categories and sub-categories does not work well. I have two types of problems: The first problem is on the Generate "category/product" ...
0
votes
0answers
21 views

Query string URL rewrite via .htaccess magento 1.9

I have created a CMS page having url key like brands.php, that cms page contains an phtml file as its content and when the page open its shows the list of all brands, When we click on any of the brand ...
0
votes
0answers
9 views

How can I fix my URL Re-Writes to match M1 store

We have been migrating our Magento 1 store to Magento 2. The URL Re-Writes are not being written the same for Product pages. on our old site the product page looks like this: 6se31900xx878bf0-...
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
0answers
9 views

Domain rewrite for all the product URL which recently migrated from another platform. The main domain should be same

Am running a store in Magento2 which I recently migrated from another platform. So all my existing URL of products changed but keeping the main domain as same. www.domain.com/products/item_name ...
0
votes
1answer
16 views

rewrite query string via htaccess

I want to rewrite some dynamic urls like: https://www.test.com/my-custom-url.html/?o=price&dir=asc&new=1 to https://www.test.com/my-custom-url.html/o/price/dir/asc/new/1 Thanks.
1
vote
2answers
13k 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" ...
2
votes
1answer
981 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 ...
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
1answer
12 views

For Magento2 how to apply a redirect rewrite in .htaccess file for all URL's from .html to /

For Magento2 how to apply a rewrite in .htaccess for all URL's from .html to / URL structure. The M1 store has .html as the end, the new M2 store has / as the URL ending for all products and ...
2
votes
2answers
795 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
0answers
5 views

Copy url rewrites from one magento instance to another

I have 2 magento instances. Version 2.3.2. I want to copy all url rewrute entry from one instance to another. How can i do this ? Which table in database contains these entry. Is there any free ...
0
votes
1answer
23 views

Can I allow specific URL of default Magento2 Frontend and restrict all other Frontend URLs?

Our Magento frontend is in vue storefront, so we have restricted default Magento frontend URLs for our system. But I need one URL of frontend which is http://127.0.0.1/index.php/customer/account/...
0
votes
0answers
12 views

Attribute Rewrite

I've created a category page I want users to go to when they click on an attribute on a certain page. I have created the rewrite but when I click the link in the attribute on the category page, it ...
1
vote
1answer
373 views

Rewrite url of manufacturer attribute

I want to prettify every manufacturer url from default structure: mysite.com/store.html?manufacturer=107 To: mysite.com/nameofmanufacturer.html I'm trying to do this by "Catalog" > "URL ...
1
vote
1answer
932 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 ...
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....
8
votes
2answers
1k views

Magento 2 .2 - How to add Static Product Prefix to Product Url?

I would like to add a Product Prefix (Static Path) to product URLs. Something like www.test.com/product-prefix/product1.html So all products url of the website follows the same structure - www.test....
0
votes
0answers
8 views

On M2, how do you apply a redirect of all URLs for .html to /

On M2, how do you apply a redirect of all URLs for .html to / ? We have migrated from M1 to M2. The M1 store had .html as the end of products and categories. The M2 store just has / at the end of ...
1
vote
1answer
3k 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
17 views

How to add url query parameter to all the categories url?

Is it possible in Magento2 to update all category pages url? Need to add a query parameter to all category urls in the page while it is being rendered.
0
votes
2answers
2k views

Magento 1.9 product page show 404 error not found

i removed categories URL from product URL now when i access product which is assign to multiple categories generate 404 error but products which assign to only category working fine any help ?
0
votes
3answers
707 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
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
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 ...
7
votes
2answers
1k 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
2answers
685 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
23 views

Import/Export URL rewrites Magento 2

I want to import URL rewrites entry from one magento instance to another magento instance. Both are magento 2.3.3 version. Is there any way to do this? what is the table name in the database where ...
1
vote
3answers
4k 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 ...
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 ...
0
votes
0answers
10 views

How can I add my custom url to url rewrite in Magento 2?

I have my controller https://local.mysite.com/brand/products/10 where 10 is brand id, which is working fine. How can I create a URL rewrite for the above to https://local.mysite.com/brand/products/...
0
votes
1answer
850 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.
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'])...
7
votes
3answers
13k views

Magento url key has strange numbers added by the system Magento 1.7.0.2

I've been pulling my hairs to figure out what's going on with my Magento store (1.7.0.2 version). 80% url-keys are appended with strange numbers in two different forms. Some are like this http://www....
1
vote
2answers
486 views

How to remove url /contact/index in contact page in Magento 2

When we entering contact form in footer from any page it redirect only - /contact/index/ Any options such that we can submit form in footer section not redirect /contact/index After submit form it ...

1
2 3 4 5
16