Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

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

How to remove only sub-category from URL key Path in Magento 2?

I need only remove sub-category in URL key. I want to put only parent category in URL path Currently path is : http://localhost/noida-products/shop-by-category/criket-kit.html Require path is: ...
user avatar
0 votes
1 answer
24 views

I want to change url of wishlist to favourites using url rewrite

I want to do URL Rewrite of wishlist link to favourites but don't know how to do it if anyone can mention the whole process it will b great. I really appreciate any help you can provide.
user avatar
0 votes
0 answers
13 views

Use category path for product url in magento 2

I have done the settings for Including the category key in the products url, which works fine https://prnt.sc/X0uTHHPyff0J . However , for Related products it is still taking the old url and not the ...
user avatar
0 votes
0 answers
6 views

Magento 2.4.2: Wrong Product URLs are being generated for some products

I am having an issue where URLs of some products are being generated like this: I have tried regenerating them using: https://github.com/olegkoval/magento2-regenerate_url_rewrites but it did not work....
user avatar
0 votes
1 answer
31 views

How to use hypen symbols in custom module controller url in Magento 2?

I have form input where user can enter postcode. When they enter postcode i am redirecting other page (controller url-popup/action/index) and i showing postcode inforation in that page. But i need ...
user avatar
  • 33
0 votes
1 answer
38 views

How to change the custom controller url to fancy url in magento 2

I created a page using conroller with the URL - "mani.magento.com/demo/action/index" but in the live site that page URL looks like this "mani.magento.com/our-service/hospital-meals/...
user avatar
  • 33
0 votes
0 answers
12 views

Magento 2.4 Redirects - Bulk Import using XML?

I have almost 800 links coming up in Google 404 that I need to add redirects for. I see how to add them manually one at a time but I do not see the functionality for a bulk import unless I am missing ...
user avatar
  • 1
1 vote
1 answer
14 views

Url redirect 2 times when access from www

I'm trying to investigate the issue redirect when using www and HTTP link. Currently, if I use HTTP link with www.domain then it will redirect 2 times 301 > 302 > 200. I check via site: https://...
user avatar
  • 660
0 votes
0 answers
12 views

4th level category page redirects to 3rd level category page

We have Categories to the 4th level in our Magento Store and the site's main URL is set without www. So now when we go to the 4th level category and put www with site URL, it redirects to the 3rd ...
user avatar
0 votes
0 answers
50 views

Magento 2 URL redirect Duplicate Content

I have a website with one store and several store views on Nginx (Magento Commerce Cloud). I am using store codes in the URL. Unfortunately, when the pages are called without store code in the URL, it ...
user avatar
0 votes
0 answers
23 views

URL Rewrites generate blank product url name with arabic name

I am facing an issue in product url which generates blank "Request Path". This will happen when I tried to add arabic product name along sku number in URL Key(SEO section) in product form in ...
user avatar
  • 1
0 votes
0 answers
9 views

Rewrite Rules are not working for CMS Page URL

I have added new Rewrite Rules for two CMS pages to redirect from one to other, For Example: In Marketing > Seo-Search > URL Rewtite added one rule: /shipping to /shippment But still not ...
user avatar
0 votes
0 answers
25 views

Magento 2 UTF-8 URL Rewrites

When will Magento 2 support utf-8 characters in URL rewrites for categories, cms and product pages? It will improve SEO by a thousand miles. I really want to use Cyrillic letters in my URLs. Is there ...
user avatar
0 votes
0 answers
23 views

My product URL is becoming the same as title. Can't optimize product URL

In the beginning, Thanks in advance. I know there are so many experts in Magento. Could you please help me? I am facing a new issue in my Magento ver. 2.4.3 When I upload a product initially I don't ...
user avatar
0 votes
1 answer
375 views

Magento 2 - new store view - category url's not working

I created a new store view with code app. I made a new subdomain for it called app.example.com, if this Url ist getting loaded, then the MAGE_RUN_CODE changes to app, otherwise it is default. ....
user avatar
  • 2,403
0 votes
1 answer
96 views

How to rewrite url with query string in magento 2

I want to rewrite url like: https://www.test.com/custom-parent-cat/sub-cat/10-12-14-17-19.html?cat=101 to https://www.test.com/custom-parent-cat/sub-cat.html Please help me to achieve this. Thanks
user avatar
1 vote
1 answer
31 views

$product->getProductUrl() returns URL without category prefix

I tried to enable the category prefix from admin STORES >> CONFIG >> CATALOG >> CATALOG >> SEARCH ENGINE OPTIMIZATION. It is working pretty well on the category page. I am ...
user avatar
1 vote
1 answer
165 views

Unique constraint violation found when editing category Name / URL key in 2.4.3 / having url_path

We are getting errors like SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'themen/redacted/redacted.html-1' for key 'URL_REWRITE_REQUEST_PATH_STORE_ID', query was: INSERT INTO `...
user avatar
  • 14.7k
0 votes
1 answer
96 views

How to remove only sub category URL from magento

I am using Magento for my eCommerce website My current URL structure is: example.com/parent-category/sub-category/page I want a solution for the URL to be changed to : example.com/parent-category/page ...
user avatar
0 votes
0 answers
74 views

Magento2.4.2 Url rewrites are not generated when products are assigned to new website via mass action

Magento2.4.2 Url rewrites are not generated when products are assigned to new website via mass action.
user avatar
  • 51
0 votes
0 answers
18 views

Magento2 product url rewrite

Magento2.4 builds multiple websites, adds multiple products after the completion of the queue, the product URL is not rewritten, who encountered no? add the product to the website for example demo ...
user avatar
  • 51
0 votes
0 answers
21 views

Magento2.4 mutitlple product url rewrite in magento2.4

In Magnet2.4.2, multiple sites use the same category product, product url is not rewritten Such as: I have two websites, a.com and B.com, I created a new website, a.com, in the background of Magento2....
user avatar
  • 51
0 votes
0 answers
10 views

How can I create a link which load another url?

I want to create link which load another url with filter without redirect. I added this records in url_rewrite table directly in MySQL entity_type : category entity_id : 4 request_path: computers-...
user avatar
  • 207
0 votes
0 answers
46 views

URL Rewrites After Akeneo Import on Magento 2.3

Currently my catalog has product URLs that are based on the SKU. I have created SEO friendly URLs which I have imported into Akeneo. I am finding when I import the new URL key it does not create a 301 ...
user avatar
0 votes
0 answers
14 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 ...
user avatar
  • 93
0 votes
2 answers
51 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
  • 1
0 votes
0 answers
14 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 ...
user avatar
  • 1
0 votes
0 answers
225 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 ...
user avatar
  • 298
0 votes
1 answer
175 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 ...
user avatar
0 votes
1 answer
103 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" ...
user avatar
0 votes
0 answers
16 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
user avatar
0 votes
1 answer
88 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?
user avatar
  • 115
1 vote
1 answer
61 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 ...
user avatar
  • 569
2 votes
0 answers
83 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 ...
user avatar
1 vote
0 answers
62 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 ...
user avatar
0 votes
0 answers
33 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;...
user avatar
0 votes
1 answer
262 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 (...
user avatar
0 votes
1 answer
187 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 ...
user avatar
0 votes
1 answer
57 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 ...
user avatar
1 vote
1 answer
68 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 ...
user avatar
0 votes
2 answers
433 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....
user avatar
  • 33
0 votes
0 answers
128 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 ...
user avatar
  • 1,958
0 votes
1 answer
157 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 ...
user avatar
  • 1
0 votes
0 answers
343 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 ...
user avatar
2 votes
1 answer
252 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. ...
user avatar
  • 21
0 votes
1 answer
100 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/...
user avatar
0 votes
2 answers
76 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 ...
user avatar
  • 1
0 votes
0 answers
51 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->...
user avatar
0 votes
1 answer
73 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 ...
user avatar

1
2 3 4 5
16