Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 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
13 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
35 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
9 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
39 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
26 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
5 views

How to add an export button in the urlRewite module

I wanted to add a new button to export all URL addresses from my store. Unfortunately, this module is so weirdly constructed that I can't understand it. Anyone of you doing something similar? Or knows ...
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
29 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
25 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
14 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
71 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
14 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
52 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
18 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
26 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
7 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
18 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
15 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
7 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
9 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
14 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
23 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
96 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
38 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
94 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
110 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
11 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 ...
0
votes
0answers
15 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
72 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
27 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
141 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 ...
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
216 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
15 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. ...
0
votes
0answers
85 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
975 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 ...
0
votes
0answers
128 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 ...
0
votes
0answers
15 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
206 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
0answers
25 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
71 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
0answers
14 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
71 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....
0
votes
1answer
193 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
0answers
14 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 ...
0
votes
1answer
24 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....

1
2 3 4 5
16