Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

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

Regex Condition for rewriting category from html to non-html

I want to redirect all my .html Categories to non.html. Like this. www.server.com/category/subcategory.html -> www.server.com/category/subcategory/ Its working fine with this line: RedirectMatch ...
0
votes
2answers
14 views

Product resource saveAttribute method cause problems with ProductProcessUrlRewriteSavingObserver

I have a problem with ProductProcessUrlRewriteSavingObserver when I try to save product attribute data by the Product resource saveAttribute method. Magento 2.4.3 changes one validation method in this ...
0
votes
0answers
14 views

How to add a row of checkbox's into Magento2 Url Rewrites index page?

I'm new to magento and trying to add a checkbox column onto the url rewrites page for via extending the vendor module magento-url-rewrite using the xml file adminhtml_url_rewrite_index.xml. I've added ...
0
votes
0answers
13 views

Adding a suffix/unique URL for bundled products

I currently have bundled products that are broken down by size. For example, Grey T Shirt (Bundle) Small T Shirt Medium T Shirt Large T Shirt Currently the url is example.com/greytshirt Is there a ...
0
votes
0answers
43 views

Data migration issue Duplicate entry url_rewrite.URL_REWRITE_REQUEST_PATH_STORE_ID magento 2.4.2

I migrating the data from Magento 1 to 2 when the migration is going on iam getting the below error. I had checked the M1 DB there is a duplicate request path and store ID there is only one. HOw to ...
0
votes
1answer
24 views

Magento 2 how to add 410 header for 404 pages

My Magento store experiences a high amount of products that get added and then deleted. I have been asked to implement a 410 status code on these deleted pages but I am unsure how. I have installed a ...
0
votes
1answer
36 views

Magento 2: Getting Error on running setup:upgrade

I updated a few modules after upgrading the Magento version to 2.4.3 from 2.3.0 and I am getting this error on running setup:upgrade command: "URL key for specified store already exists" ...
0
votes
0answers
9 views

Can you do custom routing for cms page?

Can you change the url from cms page to a custom url? Is that something we could do with routes and show the cms page content
0
votes
1answer
17 views

URL Category rewrites not updated after the change

I'm using Magento 2.4.2, when changing the categories URL keys in the admin panel the URL rewrite sometimes isn't updated. Why would it happen and how can I update them?
1
vote
1answer
41 views

How to add Categery name url in category page

At present my category page URl is https://myshop.com/catalog/category/view/s/handbag/id/54/. I need to change Category page URL like https://myshop.com/handbag. Please let me know which file want to ...
2
votes
0answers
76 views

how to regenrate every product url with category path magento 2

Hey there i have been searching for solution of my issue i have multiple product slider widget in diffrent cms pages but the url of that prodcucts are http://127.0.0.1/kisna/new-prodcut.html and on ...
1
vote
0answers
44 views

URL Rewrites of categories that have subcategory don't work

Normal behavior: All URL rewrites of categories work. What I am getting: Categories that have subcategories do not work. But categories that have no subcategory work fine. What I tried: Used Oleg ...
0
votes
0answers
10 views

Nginx on Magento 2.3.2 not rewriting the /version on request urls

I am desperate with this. I have the following config files: upstream fastcgi_backend { # use tcp connection # server 127.0.0.1:9000; # or socket #server unix:/var/run/php5-fpm.sock;...
0
votes
0answers
13 views

Regenrate url error in magento 2.3.3

I have changed the url key for my product https://nimb.ws/54OkFK. The url rewrite is also generated. I used https://github.com/olegkoval/magento2-regenerate_url_rewrites module to regenerate url. In ...
0
votes
0answers
44 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
1answer
43 views

Importing existing products: Integrity constraint violation: 1062 Duplicate Entry

I have been importing existing products to a local environment through the admin dashboard. I realized that many of the products I imported didn't include their attributes, so I went back to make sure ...
0
votes
0answers
10 views

URL rewrite having query string via htaccess in magento 2

I have current URL like this: http://localhost/projectname/industries/index/index/industry/aircraft (Here industries is the frontend route, index is controller and second index is action industry is ...
0
votes
1answer
42 views

Magento 1.9 - How to rewrite magento cms page to custom url with query parameter

I want to rewrite CMS page url to custom url. For eg. CMS page url is "/result/?q=test" and rewrite url should be "/demo/test" For this I'm trying to below htaccess rule ...
1
vote
1answer
35 views

Magento 2 Admin Url or any other URL you are requesting not found on server 404

I tried all possible solutions on the internet but the still issue persists. Solutions that tried 1. ( Many solutions suggest changes in apache in following files ) /etc/apache2/apache2.conf Enabling ...
0
votes
0answers
11 views

how to display menu from the data of the Sutunam module in the weltpixel module in magento 2

comment identifier comment seront renseignés les liens dans weltpixel pour recréer le menu à partir des données du module Sutunam (sutunam_menu pour les entrées de menu (avec sutunam_menu_store pour ...
0
votes
0answers
25 views

Magento URL Rewrite - Extract match string and redirect to new path

I have URL For example mydomainname/dir1/dir2/dir3/dir4/abc.jpg I want to redirect dynamically to all matching URL mydomainname/dir4/abc.jpg //Want extract some part and redirect to reaming part of ...
0
votes
2answers
45 views

Magento 2.4 showing 404 not found for product page loadeds from a different store view

I have a Magento 2.4.1 store with two languages (EN and DE). Let's say the EN store view is currently selected and a product URL will look like this: https://website.de/wedding-bands/wedding-band-1....
0
votes
0answers
38 views

Redirect URL with it's store view code

I have multi websites in one magento. Magento version is 2.3.2 I have multiple categories in magento. I am showing here for "es" store view code. https://localhost/catalizadores (Without ...
0
votes
1answer
39 views

Execute custom php file outside /pub folder in Magento2 Nginx

I would like to execute a custom php file (required for a validation and scan) on our Magento2 installation. The file however should remain and be located in the main /var/www/html/ folder and not in ...
0
votes
0answers
155 views

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

I got this error while trying to make category "is_anchor" yes or no. If i save category without changing this "is_anchor" attribute then it works fine. I have migrated the store ...
0
votes
0answers
16 views

Delete related url_rewrites when category is deleted

Any one have idea when we delete a Category from the admin panel does it also deletes the url_rewrites related to that category or do we have to delete those manually. Note: if we don't delete the ...
2
votes
1answer
115 views

Category Name and URL Key issue / Admin / Migration from 1.9.1.0 to 2.4.2

I'm facing an issue further to data migration from magento 1.9.1.0 to 2.4.2 in Admin > Store / Configuration / Category Categories name and url_path are in the database, Category name also. ...
0
votes
1answer
30 views

How to export all URL rewrites in a CSV?

I would like to export all my URL rewrites in a CSV, via Magento 2 admin panel I can't do it. I followed this guide below but I didn't find anything native. https://docs.magento.com/user-guide/...
0
votes
2answers
39 views

How to redirect domain.com to www.domain.com?

I have this code in .htaccess Options +SymLinksIfOwnerMatch RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] But it still appears ...
0
votes
0answers
8 views

Magento 1.7 - SEO URLs - Rewrite URL in Sitemap for Products

we have Magento 1.7 in use. We would like to read our SEO URL for the products from the database. We have found that the attributes for "url_key" do not match the URL from the sitemap of ...
0
votes
0answers
32 views

Redirect url with key formula in Magento 2

I'm trying to do this in Magento 2: I have my url : https://www.example.com/page/ I'd like to add after /page a key value. Example : /page/key1, /page/key2 ... Then I get the key value with $this->...
0
votes
1answer
17 views

URL rewrites not being used

I am using Magento 2.4.1, PHP 7.4, nginx and varnish and a stock import module that also creates URL rewrites. This part of it is all working fine and the url_rewrite table in the database has the ...
0
votes
0answers
8 views

Remove products url from Google search one store view

I have multiple store views. Want to remove product url only for one store view
0
votes
0answers
11 views

Setting Up Custom URLs For Each Option/Swatch of a Variable Product

A client wanted to setup where he sells fabric and related stuff and wanted each variation on a different URL. So example, he sells a shirt with the colors red, blue, and black. Upon landing on the ...
0
votes
1answer
15 views

problem redirection on product page when using http protocol

I got a problem in magento 1.6 In production environment, I pass a product url using http, it will be converted to https://domain/catalog/product/view/id/18341/category/451 instead of https://domain/...
0
votes
0answers
30 views

The value specified in the URL Key field would generate a URL that already exists.To resolve this conflict

i am working with Magento 2.4 , initially i have uploaded all the products to the "DEFAULT CATEGORY" via csv, and afeterwards I tried to update a new category name for each product using CSV ...
0
votes
1answer
111 views

Magento2 Optimize url_rewrite table

We have recently migrated Magento1 to Magento2.we found that url_rewrite table has almost 16000000+ rows. M1 site was build before 6 years and the url rewrite table has increased over the years. This ...
0
votes
0answers
68 views

Magento 2.4.1 - I get "The value specified in the URL Key field would generate a URL that already exists" even though URL does not exist yet

I try to save the category "Drehrahmen", but I get this error message: The value specified in the URL Key field would generate a URL that already exists. To resolve this conflict, you can ...
3
votes
0answers
129 views

Magento 2 404 page is redirecting to catalog search page

Magento 2 404 page is redirecting to the catalog search page. Example- www.abc.com/test123 it will redirect to the 404 page but it is redirecting to www.abc.com/catalogsearch/result/?q=test123 How to ...
0
votes
1answer
199 views

Magento 2 - remove .html from URL by using .htaccess

We have some wrong URLs in our store ending with .html. If the user opens such a URL, then the .html should get removed, otherwise the site cant get found. So I added this rule to my .htaccess file in ...
0
votes
0answers
28 views

Changing Url magento 2

I want to change www.m2.com/authors/view/index/id/1 to www.m2.com/authors/author_name.html how can i achieve this help
0
votes
1answer
14 views

Duplicate url issue when removing products from category in magento 2.3.3

When i try to remove products from category https://prnt.sc/vl7rt3, i get duplicate url error. https://prnt.sc/vkscz9. I know how to resolve it. but need to understand when a product is removed from a ...
1
vote
0answers
21 views

Sitemap and Product URLS to include a specific parent category in URL - Magento 2

I would like to use the "Use Categories Path for Product URLs" feature within Magento 2 however default to it. Not only that but in the case a product belongs to multiple categories be able ...
0
votes
1answer
199 views

Wrong Product URL when found via category on M2

I am using Magento version 2.3.1 EE and I observed that some of the product page URL's are coming wrong when found via category even if the URL rewrites are created in the Magento admin. It is ...
0
votes
0answers
21 views

Magento 2: URL rewrite to home doesn't work

I'm new to Magento and have an issue with some rewrites. I want to redirect some URLs like https://www.example.de/en/category to the homepage https://www.example.de/en/. What do I have to put as ...
0
votes
0answers
36 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://...
1
vote
1answer
251 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 ...
1
vote
2answers
306 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
119 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
1answer
1k 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
2 3 4 5
16