Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views
+50

Category links loading two times

When we click on any category or subcategory link , it open two urls : first, it will load below url https://www.website.com/earrings/earlobes Next, it will load below url : https://www.website.com/...
Baby in Magento's user avatar
0 votes
1 answer
51 views

How to change or overwrite order_id number in Magento store URL?

When viewing orders as customer order_id is visible in URL like this: /sales/order/view/order_id/20/ Is it possible to achieve that orders would be accessible by increment_id value instead? Otherwise ...
player's user avatar
  • 33
0 votes
0 answers
16 views

No redirect to human readable (rewritten) product URL?

Magento 2.4.6 I just noticed that all products in my shop can be reached on the not rewritten url like https://www.myshop.com/catalog/product/view/id/174750/category/2/ and also under https://www....
user4095519's user avatar
0 votes
0 answers
21 views

Create Permanent Redirect for old URL not working - Magento 2

I have update product URL-key but still, the old URL is working. New URL is not working. Solution applied: ACSD-45168 patch applied. It generates the rewrites, but with the old url, not the new url-...
Jasvir Singh's user avatar
0 votes
0 answers
23 views

How to show custom Item detail page on require URL?

I created a module for custom items similar to products and showing on frontend as a listing and detail page. I want to show the listing page on this URL: storeurl.com/custom which is loading fine but ...
Sagar Parikh's user avatar
0 votes
0 answers
22 views

magento 2 Unique constraint violation found when adding subcategory

I added two categories with sub-categories from my magento site with multiple websites 2.4.3-p1. i have imported 100 products assigned products to main category through sheet. after that created ...
pavan kumarexinent's user avatar
0 votes
0 answers
11 views

Product page Error 404 - Magento2.4.5

We have a configurable product. When we go to this product we got error 404. When we go to product by typing url, same error. When I go to Url rewrites, and change this product url to redirect type ...
Jasvir Singh's user avatar
0 votes
0 answers
22 views

Issue with URL Keys for variant products now appearing on Frontend

We are experiencing an issue with our Magento store: New URLs are being generated upon saving products, pointing to the configurable's product variant, and causing them to appear on the frontend. Here'...
Medipost Web support's user avatar
1 vote
2 answers
130 views

301 Redirection from Old Magento2 URLs to SEO-Friendly URLs

In my Magento2, some products have URLs that include the product id, such as the URL below. https://www.example.com/catalog/product/view/id/* and indexed with Google as well. Now i have regenerated ...
Banna Online's user avatar
  • 1,059
1 vote
1 answer
55 views

Magento 2 Pagination Urls changing from ?p= to &p=

For some strange reason, despite not running any recent updates, our pagination links have broken on all categories. So they are occuring as &p=2 rather than ?p=2. The link still works if you ...
user2099163's user avatar
1 vote
2 answers
122 views

How to replace an existing product's url with a new product

I am duplicating a product, disabling the old one and want to set the url of the new product to replace the old product. $duplicateParent = $this->productCopier->copy($oldproduct); $oldproduct-...
Ben's user avatar
  • 11
0 votes
1 answer
312 views

Product Url Redirect to Home Page Issue Magento 2

My configurable product redirecting to home page. I have removed the .html from Product URL Suffix and it works fine. Now concern is if i open my configurable product then it redirect to home page. ...
Sunny Rahevar's user avatar
0 votes
3 answers
53 views

Magento 2 + default url needs to traslate

Need to translate some default URLs like customer/account/login/ & customer/account/create/ is there any way to translate these URLs with/without using URL rewrite?
Yogesh's user avatar
  • 1,503
0 votes
0 answers
53 views

Magento 2.4 - Programmatically Created Categories in Multi-Store Collide

I have a Magento 2.4.3 multi-store and I am currently creating categories programmatically, with the following code: $category = $objectManager->create('Magento\Catalog\Model\Category', ['data' ...
A. Andersen's user avatar
0 votes
2 answers
79 views

Update on "Add Store Code to URLs" Setting and URL Redirection

Recently, I made the Magento settings update regarding the "Add Store Code to URLs." I have set this option to "No," which has successfully removed the store code from the URLs. ...
Sheri's user avatar
  • 140
0 votes
2 answers
171 views

Creating URL searchable product variants

In most e-commerce platforms, when a user selects a specific variant, the URL reflects that variant with a search parameter like in this case -> you can see ?variant=39817439379514 appended to the ...
user112140's user avatar
0 votes
1 answer
70 views

Strip index.php from rest urls

I am having this issue with an external platform which trying to get rest urls from my magento 2.4.5. Issue is that the urls they hit contain index.php inside. They are like this: https://example....
G. G.'s user avatar
  • 1,132
0 votes
0 answers
51 views

Magento2 : Product Url Rewrite not woking Properly

I am facing an issue with the product URL rewrite. I have installed the extension "OlegKoval_RegenerateUrlRewrites" to generate URL rewrite. some products are working but others are ...
sandip memariya's user avatar
0 votes
1 answer
43 views

Redirect 404 Pages to HomePage

I am redirecting 404 pages to the homepage, but the URL is not changing it's the same 404 page URL I want to change it to the homepage. My code : <?php namespace Vendor\Module\App\Router; class ...
Rana Zain's user avatar
  • 662
0 votes
0 answers
24 views

Redirect Disabled child categories to the Parent Category

I want to redirect the Redirect Disabled child categories to the Parent Category.
Rana Zain's user avatar
  • 662
0 votes
0 answers
15 views

Facing issues with category in magento 2.3.7-p4

I am able to create categories and assign products to them but the real issue comes with category pages which gives 404, unable add them in menu and when I create custom CMS page to get products by ...
Game Tutos's user avatar
0 votes
0 answers
25 views

Redirect 404 Pages To the Homepage

We have disabled products, categories, and CMS. When we try to access the URL it redirects 404 page. I want to redirect 404 pages to the Homepage of the site.
Rana Zain's user avatar
  • 662
1 vote
3 answers
740 views

Magento 2 - empty URL Key for home page

Our site home page URL is https://example.com But the corresponding CMS Page in Magento 2.4.4 has home as the URL Key. As a result, the home page can also be browsed at https://example.com/home We do ...
J Bruni's user avatar
  • 11
0 votes
1 answer
509 views

How to create different URL of a Single page in magento 2

How can i make different url of a single page
user110698's user avatar
0 votes
1 answer
53 views

unable to save a rewrite

Im trying to save a new redirects into the urlrewrite model but it seems that save() doesn't exist in those factorys: Magento\UrlRewrite\Model\UrlRewriteFactory or Magento\UrlRewrite\Model\...
Amjad Alarori's user avatar
0 votes
1 answer
249 views

Custom URL rewrite not working in pwa magento 2 site

Custom URL rewrite not working in pwa magento 2 site The below setting is enabled General -> Web -> Search Engine Optimization -> Use Web Server Rewrites -> Yes any other setting or ...
Mahendra's user avatar
  • 716
0 votes
2 answers
45 views

Magento 2 - "The value specified in the URL Key field would generate a URL that already exists." even though the value does not exist in url_rewrite

I get "The value specified in the URL Key field would generate a URL that already exists." but I checked the table "url_rewrite" and there is no entry with that key. The URL is &...
Black's user avatar
  • 3,330
0 votes
1 answer
512 views

How to find URL Rewrite via database?

I have 900k URL rewrites in the database, and I need to find one specific URL /magasin, the filters aren't helping me because that are too many URLs starting with /magasin. How could I filter it via ...
Rafael Corrêa Gomes's user avatar
1 vote
1 answer
467 views

URL Rewrite not working only for one specific path

I want to ask you for help regarding URL Rewrites. As you can see here I've added the URL rewrite for this path but in the sitemap.xml file there is still not updated it's an old (target path) so the ...
Kristijan Isajloski's user avatar
2 votes
0 answers
156 views

Why aren't Magento 2 URL rewrites working as I'd expect?

Since deploying a Magento 2 website we've had trouble with URL rewrites. The default URL used by our products is (example) mysite/catalog/product/view/id/50146/s/my_product/my_category/2/ This is not ...
Sparko's user avatar
  • 121
1 vote
2 answers
660 views

Url rewrite error

Can anyone please help me on this? i'm calling all my product name and sku from an external api and save to database but unfortunately when i run cron i'm getting following error on log and the api ...
Adex's user avatar
  • 25
0 votes
1 answer
88 views

Disable URL rewrite for specific URL

I have the ShipStation extension installed in my Magento store (v2.4.4), and I'm having a problem with the APIs. ShipStation tries to connect at www.mystore.com/index.php/api/auctane, but with with ...
Swappart's user avatar
0 votes
0 answers
136 views

Catalog url are going 404 after upgrading Magento 2.4.4

I am working cloud commerce edition. I have upgraded the Magento version from 2.3.5-p2 to 2.4.4 I have run the upgrade, compile, deploy, indexing and cache commands but the catalog page is going 404 ...
Vinod Kumar's user avatar
  • 2,055
0 votes
1 answer
313 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.
Parth Patel's user avatar
0 votes
2 answers
278 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 ...
Mani's user avatar
  • 383
0 votes
1 answer
455 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/...
Mani's user avatar
  • 383
1 vote
1 answer
148 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://...
the light's user avatar
  • 718
1 vote
0 answers
45 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 ...
Shoaib Fareed's user avatar
1 vote
1 answer
99 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 ...
Hristo Hristov's user avatar
1 vote
1 answer
2k 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. ....
Black's user avatar
  • 3,330
0 votes
1 answer
564 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
Faisal Sheikh's user avatar
1 vote
1 answer
145 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 ...
Charanjeet Singh's user avatar
1 vote
2 answers
882 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 `...
Alex's user avatar
  • 13.8k
0 votes
1 answer
489 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 ...
Suhan Shukla's user avatar
0 votes
0 answers
643 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.
sq y's user avatar
  • 137
1 vote
2 answers
205 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 ...
Dominik Adamski's user avatar
0 votes
1 answer
751 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 ...
Praveen Negimani's user avatar
0 votes
1 answer
254 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" ...
mechanic's user avatar
  • 440
0 votes
0 answers
29 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
Jack Brooks's user avatar
0 votes
1 answer
723 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?
KaMZaTa's user avatar
  • 205

1
2 3 4 5
17