Questions tagged [product-urls]

The tag has no usage guidance.

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

Magento 2 Catalog URL Suffix not working

The website have 12 store views. 6 of them have .html suffix for products while the other 6 doesnt. I am not sure how that happened. I edit the store settings for all of them to have the .html suffix ...
user avatar
0 votes
0 answers
16 views

Magento 2 product export with full product url

I export products from specific merchants from magento2 admin. System -> Data Transfer -> Export. Every thing works fine, but here I need the the url key (chest-of-drawers-grey) as a full url ...
user avatar
  • 1,702
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
1 vote
1 answer
29 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
0 votes
1 answer
71 views

Proper way to remove .html extensions from URL and do a global redirect

I know how to remove.html extensions from URLs in Magneto 2.3, but I'm unsure what other steps I need to take to make sure I do everything properly. I found that I should also create a global redirect ...
user avatar
  • 1
0 votes
1 answer
58 views

How to find duplicate URLs in the database?

Magento 2.4.2-p1 Smartwave Porto theme We migrated from Magento 1.9.4 to Magento 2.4.2-p1. We keep getting the following Error when working with products: The value specified in the URL Key field ...
user avatar
  • 306
0 votes
0 answers
20 views

How many characters are product url key compared with existing product url key in magento2?

Issue: I am facing "Unique constraint violation found" on saving a Product. Aim: To change product Url format as {base_url}/{product_name}-{sku} Existing Product 'A' url-key: canmixs-smart-...
user avatar
3 votes
2 answers
158 views

Multiple URL Rewrites for the same product is SEO issue?

By default in Magento, while assigning categories to the product. The Magento itself creates a URL rewrites based on each category which all going to be redirected to same product page. Different ...
user avatar
0 votes
0 answers
19 views

Magento 2.3.5-p1 How to add a prefix to the product url?

I am working on Magento 2.3.5-p1 and I need to add a prefix in the product urls just before the product name. I have tried with this example but there is a deprecated function so it fails. So I have ...
user avatar
  • 64
0 votes
0 answers
28 views

Generate product URL in CMS page, Catalog Search page, Sitemap, Canonical URL with category path

I want to generate or print the product urls in CMS page, Catalog Search page, Sitemap, Canonical URL with category path. currently my product url in CMS page, catalog search page and in canonical ...
user avatar
2 votes
0 answers
82 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
0 votes
0 answers
26 views

Magento 2.2.5 Product URL key not redirecting to html

We had done a Magento Upgrade from 1 to 2.2.5. Magento 1 had URL key set, so you could get the product by visiting eg. website.com/chair.html In Magento 2 also, there are some products which you can ...
user avatar
  • 121
0 votes
4 answers
59 views

Get Storefront Product URL for Magento 2

I am trying to get the storefront product URL. $_Product = $objectManager->create('Magento\Catalog\Model\Product')->load($product->getId()); echo $_Product->getUrlModel()->getUrl($...
user avatar
0 votes
2 answers
327 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
1 answer
16 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/...
user avatar
0 votes
1 answer
65 views

I WANT TO CREATE TWO URL'S FOR SAME PRODUCT FOR MAGENTO 2

I want to create two URLs for the same product, one URL that is with products SKU i.e. https://domainname/skuNo. And another URL is for SEO purpose i.e. https://domain name/product name.html Where ...
user avatar
0 votes
1 answer
425 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 ...
user avatar
0 votes
1 answer
125 views

How can I get the Canonical Product Url in list.phtml?

I need to get Canonical Product Url inside app/design/frontend/Vendor/Theme/Magento_Catalog/templates/product/list.phtml. I tried to use: $block->getProductUrl($_product) and: $_product->getUrl(...
user avatar
  • 115
0 votes
2 answers
262 views

Magento 2 - add prefix before category and products urls

I want to add prefix in category and product urls of Magneto 2.3.4. I was able to add prefix in product urls but not working on category urls. Please guide.
user avatar
0 votes
1 answer
419 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 ...
user avatar
2 votes
1 answer
663 views

How to redirect to specific category if product url is 404 due to product disabled in magento 2.3?

If I have disabled any product then it will redirect to 404. But I want to redirect that product url from 404 not found page to the category url in which this product is assigned. That means I want to ...
user avatar
  • 1,957
0 votes
1 answer
26 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....
user avatar
  • 107
0 votes
1 answer
51 views

Product URL issue in Observer Magento 1.9

I have create an Observer function which is call after product save but having some issues with product url. Getting product like: $product = $observer->getEvent()->getProduct(); Getting ...
user avatar
  • 749
1 vote
1 answer
37 views

magento2 product custom url name_sku

How can I change my product URL to name_sku? Example: baseurl.com/shirt_35458.html also I have product url preficx that I created a module for it.
user avatar
  • 701
1 vote
0 answers
30 views

Magento 1.9 Localized product url keys

In Magento 1.9 we want to use localized product URL keys for different storeviews. The url key is a global variable and can't be changed by storeview. Example: English: www.example.com/en/addidas-...
user avatar
  • 11
0 votes
0 answers
243 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 ...
user avatar
1 vote
0 answers
72 views

Display simple product urls in magento 2 bundle selections

In a bundled product I would like to be able to show the product url from a simple product or the selected item within the bundled product as a "view item" link. So when this is selected the user is ...
user avatar
0 votes
1 answer
51 views

Plugin beforeGetUrl - not being used? (solved, facepalm)

I have grouped products "containing" simple products. I have had to make the simple products visible but while I am ok for them to appear in certain lists, I want the link to go to the parent page not ...
user avatar
  • 1,549
1 vote
1 answer
78 views

Inconsistent Product URL

I'm facing an issue in Magento 2.2.0 and Unero Theme 1.3.2 where there are products that have an URL like: https://example.com/catalog/product/view/id/440/s/product-url-key/57/ and the others are: ...
user avatar
0 votes
0 answers
102 views

Magento2: How can set duplicate product URL?

I want to create each product with duplicate url like example.com/custom. I have tried below things. I am creating each product with url of custom-productId then it is coming like example.com/...
user avatar
1 vote
1 answer
1k views

Magento 2: Issue with Product URL rewrite on Single Store Mode

I'm using Magento 2.3.3 CE. I've enabled the single store mode on a website from Stores > Configurations > General > General > Enable single store mode After enabling the single store mode, the URL ...
user avatar
  • 4,643
0 votes
3 answers
54 views

How to getproduct url for sales email order template in multi website

I want to get producturl in sales order email template in multi website. I have used $_item = $block->getItem(); $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product =...
user avatar
  • 569
0 votes
2 answers
79 views

Issue with Url key change for product in magento 2.3

I changed the url key for the Product https://prnt.sc/p9o8li but on clicking on product it is redirecting to old url. On clicking product it is going to https://ihouzit.com/Timeless-Gin-and-...
user avatar
  • 700
0 votes
1 answer
354 views

Magento 2: Problem with Product Links

During an Import to Update Product prices, I made a mistake. I leave the value for the Product Link empty. After the Import all Product URL change and got the value from the Product name. To face this ...
user avatar
  • 165
1 vote
1 answer
117 views

Magento2: How to show product URL on Homepage

I have to show list of product on same category on homepage I have achieved the same using CatalogWidget but got issue with URL, It shows URL like example.net/product but I want to show URL like ...
user avatar
2 votes
2 answers
493 views

Include category path in product urls in sitemap and canonical urls

I am using magento-2.3 EE. I want to include category path in product url, in sitemap urls and same should be in their canonical urls. Like in sitemap, product urls should be like - site.com/...
user avatar
  • 377
0 votes
1 answer
2k views

Magento 2: Get Product via url with sku number in url

I have a magento 2.2.9 based site and wondering if its possible to get a product via url by having the sku in the url? so something like https://www.domain.com/shop/?sku=123 Wanted to know if there ...
user avatar
  • 771
0 votes
1 answer
53 views

Storewise product url save programatically in Magento 2

I have 2 different website in my Magento. I want to store different url key for each website. How to store it programatically ?
user avatar
  • 125
0 votes
1 answer
34 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
user avatar
  • 483
2 votes
0 answers
955 views

Magento2.2 sitemap genrate after some product url not showing properly

I have to used Magento2.2 and we are also install in our site this plugin olegkoval/magento2-regenerate-url-rewrites but we are truncate url_rewite table after run this command on our staging site ...
user avatar
  • 1,587
1 vote
2 answers
920 views

magento 2.3 redirect all product urls without category path to urls with category path

I want to redirect all product URLs without a category path to their category path URLs for SEO purposes. Example - Redirect mywebsite.com/product-name.html to mywebsite.com/category1/sub-...
user avatar
  • 377
2 votes
1 answer
487 views

Product image going to the wrong URL

I have this block at the bottom of cms pages that are created by bluefoot and when you click on the image it takes you to a long URL like if it was being searched for but if you click on "add to cart" ...
user avatar
1 vote
1 answer
152 views

Single url for a product which is in different category in magento 2

I have a product black-jacket under the category men->tops when i click on men the url is like http://magento2/men/black-jacket.html and if i click on tops under the men then the url is http://...
user avatar
1 vote
0 answers
56 views

product page urls changed after upgrade

I have upgraded magento from 2.1.8 EE to 2.3.1 EE. After upgrade the product page urls have changed, they should be in the format- https://site-url/parent-category/sub-category/product-name.html ...
user avatar
  • 377
1 vote
1 answer
27 views

M1 Changing website to https breaks product pages

Currently our website is only secured on checkout. We want the whole site to be secured so we had our IT guy do that. The whole site is secured EXCEPT I cant get to the individual product pages. It ...
user avatar
  • 380
1 vote
0 answers
34 views

Imported products and categories system urls return 404

We are setting up import of products and categories from suppliers XMLs. The idea is to have it automatic and we have successfully imported products and automatically generated categories using this ...
user avatar
  • 117
0 votes
0 answers
57 views

Magento2 url issue

My magento2 website in following url to be show catalog/product/view/id/9583 but i need like powder-9583.html so what step we required to achieve this. and also search engine is on on ...
user avatar
0 votes
1 answer
755 views

URL paths not reflecting url key from admin panel

I am trying to work out why some of my URLs are being presented like the below /catalog/product/view/id/75/s/whiskware-egg-mixer/category/15/ I have run bin/magento indexer:reindex but the URLs aren'...
user avatar
  • 254
0 votes
2 answers
675 views

How to add product link in order email magento 2

My order mail.phtml $_item = $block->getItem(); $_order = $_item->getOrder(); <tr> <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?&...
user avatar
  • 1,037
1 vote
1 answer
28 views

Removing (hiding) Magento system URLs

I am pretty sure there has to be a simple way to solve, but I just cannot find it. So, by default, there are 2 types of product rules at my store: mystore.com/catalog/product/view/id/177 mystore.com/...
user avatar
  • 11