The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [product-urls]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

Magento 2 get Product Url in Foreach

In Magento 2, I trying to get the Product URL using this code $_product->getProductUrl (). But it is having only the first product's url to all the products. How to fix it. Used the Following Code:...
0
votes
1answer
102 views

How to regenerate products URLs with diacritics properly

I need regenerate urls for all products (about 3000). Befere my regeneration urls are like https://my-shop.example.com/product/view/id/xxx/s/name-of-product. I need my products urls will be like https:...
3
votes
2answers
3k views

URL Key not changing in Magento 2

I am using Magento 2.2.4, I am having too many Disabled/OutofStock products which are useless. Now the problem I am simply replacing all Disabled/OutofStock products with New Products. I can ...
1
vote
0answers
144 views

Incorrect Backend Url from getUrl() method

I am trying to write link to Payment Transaction to Oder's comment. But it seems UrlBuilder generates incorrect security key for the link. Link from transaction page: backend/sales/transactions/...
0
votes
0answers
85 views

Some products have catalog/product/view/id/2221/name-of-the-product from product URL magento 2.1.8?

In the Site, product URL is like this: http://www.test.com/product-url-key But when I searching the product then some product URLs are showing like this: http://www.test.com/catalog/product/view/id/...
0
votes
1answer
143 views

Search product URL as catalog/view/id/213 Magento 2

I have disabled Use Categories Path for Product URLs, so the product URL Example: www.example.com/product-url Which is fine. But I have added some products which have visibility as search only. ...
1
vote
4answers
185 views

How can i remove index.php from Categories URL & Products URL? [duplicate]

In my base url not have index.php, but my all categories and products url consists index.php. How can i remove this. Note : Base url have not index.php
0
votes
2answers
2k views

Magento2: Remove Category path from product URL is not working

I have a Magento2 store. I don't want to add the category path into products URLs for that I set “Use Categories Path for Product URLs” as "NO" in magento2 Admin, but It still add the category path to ...
1
vote
0answers
35 views

SQL Query - is this Query safe to run for my Magento 2 store

I want to change all my downloadable product from link_file to url_file, so I created a query for that. Can I get advice if this query is safe for me to run. UPDATE downloadable_link SET link_url = ...
1
vote
0answers
13 views

MULTIDOMAIN - Even if I change the URL on a product, the old version is being used

I am running a multidomain store, Magento 2.2.1 CE. The default value is in Danish. I created an Italian domain, where I need Italian URLs. In the backend, I go to a product, I select Italy as store ...
1
vote
1answer
3k views

Magento 2 : Product URL rewrite issue

I have a Magento 2.1.10 store. I have imported all the products and categories. Now the product url is http://www.exaple.com/samplecategory/sampleproduct.html But I want the URL as http://www....
0
votes
1answer
162 views

Magento 2.2.2 multillanguage url rewrite

using Magento 2.2.2, I have a store with two views English and French, I want to make urls looks like domain.com/en/product1 domain.com/fr/category1 ... thanks
0
votes
1answer
109 views

Magento 1.9.2.1 Product Upload Via .csv file does not generate url rewrites

I uploaded products via .csv file but the URLs does not get created/generated. I wonder if anyone can tell whether this is the expected behavior or there is a bug? Updated Question I have uploaded a ...
0
votes
1answer
503 views

How to export product url in Magento2

I have exported my products from the admin panel of the magento, but there is no product url. Is it possible to export every product url??
4
votes
1answer
468 views

Modify dynamically created product url in magento 2

I have enabled "Use Categories Path for Product URLs". Because of this, I get category path in product url. But when we search the product, it redirect to the product url that does not contain ...
0
votes
2answers
130 views

Magento v1.9.x ultimate module creator entity URL rewrite / key problem

Hi all ( especially Marius :) ) I have an annoying problem with my Mag 1.9.x modules created using the, otherwise great, ultimate module creator. When an item/entity is given a friendly URL and ...
1
vote
0answers
20 views

Turn system URLs into canonical URLs

I've inherited a site that was M1 and using system URLs. I have migrated the product data over to an M2 installation. Is there a way now to convert those system URLs to canonical URLs?
0
votes
1answer
143 views

Magento 1.9 add a fixed product prefix

First of all, did quite some research, but could not find the best solution in this case. For SEO reasons, we need to add a fixed prefix (with a slash) to all product URLs. Product URLs now look ...
0
votes
1answer
52 views

Magento 1.9x occasionally displays unfriendly URLs

Magento will occasionally display unfriendly URLs even though SEF is enabled in the admin. At first glance, I believe this has something to do with indexing and the order we re-index and refresh ...
0
votes
2answers
797 views

Magento 1 get product or category id by url string

I have url string. I need to detect if url belongs to product or category and get product or category id. I tried this, but it won't work: $vPath = 'http://dev.magento186.com/default/example/...
0
votes
0answers
326 views

Magento 2.1.x Multistore Multi domains, getting 404 error on Product Display Page for non Default Store View

I have a Magento CE 2.1.4 website, with 2 store views with 2 different domains. The “Add Store Code to Urls” in Stores > Configuration > General > Web > URL options is set to DISABLED since I'm using ...
0
votes
1answer
916 views

Add a static URL prefix for product and category Magento 2

I need to specify a prefix static string for all URLs of my Products and Categories. Just like Wordpress Woocommerce permalinks. For example all of Categories should have product-category prefix in ...
2
votes
3answers
3k views

Magento 2 Get Product Url For Specific Store

I have multi stores enabled in my Magento instance. I am trying to get product url for each store as I need to index data in Elasticsearch. What I have tried but not getting the result with store ...
5
votes
1answer
461 views

Product url displaying category-ID and product-ID

Few Product urls are displaying with category and product id but few products are working fine. I want to keep all URL like: http://localhost/magento2/test-product not like below http://localhost/...
0
votes
0answers
284 views

Flat product/category tables producing category URL instead of product on list view

I have enabled the flat product and category tables on a development site to test before using live, and for some reason product links in category views now link back to the category itself rather ...
5
votes
1answer
1k views

Magento 2: Setting the product url key with REST API

Is it possible? I see no mention of a url_key in the Swagger docs. I have a large database of product I need to import, and the names (which seem to determine the url) are not unique.
2
votes
1answer
604 views

Why the Campaign Tracking Parameters isn't working on Product Pages?

I have a situation where I send out email campaigns which link back to products. The link code is in the format: ?utm_campaign=EnewsNov&utm_medium=email&utm_source=HouseList&utm_term=...
0
votes
2answers
2k views

Magento 2 .html.html issue after update from Configuration > Catalog

I am trying to remove the .html.html from Products and Categories url. I have gone procedure with the below steps after some research on this issue. Stap 1. SELECT * FROM `url_rewrite` WHERE `...
0
votes
1answer
23 views

How to change my old url to the new one?

How can I change my old Url into new one for SEO betterment? Under I have given the screen shot of my old product url. Now How can I change this product url to- "http://example.com/fastrack-watch-...
3
votes
6answers
12k views

Magento 2 is generating the product url with catalog/product/view/id instead of product name

We are having a strange problem in our Magento 2 webshop. Our webshop has different ways of generating the product url. So some of our products just show the product url as it should be /name-of-the-...
1
vote
1answer
186 views

File path to change the product url [duplicate]

Currently url is forming by product name and i want to change it by using the sku_id.for this change where i change the code. To change the product url which file has to be modified. please help me i ...
1
vote
2answers
1k views

change the over all product url

I have a big doubt in forming url for products. Currently url is formed by using the name attribute. I want to change this to sku_id(attribute) of the products. For this where i need to change?
0
votes
3answers
1k views

I need to get product url on product save after event in magento 2

I want to access product url from product collection after product save event in magento 2. i have try to some code but its return url with admin code and key. i want to clean url no need to key and ...
0
votes
1answer
256 views

404 on all .html URLs

I am getting an nginx 404 on all pages ending in .html in my test instance, which is in a subdirectory at the root of production. For instance, /test/, /test/contact/ and /test/about-us/ are all good. ...
11
votes
1answer
20k views

Magento 2 How can we get product url with product collection?

I am able to load product collection by using [$objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection')] in my phtml file.But in that collection product url is not there ...
2
votes
0answers
963 views

M2: Is `url_path` used for anything?

I'm working with a catalog in M2 that has been somehow migrated (don't know how). It has url_path migrated and has the form of url_key + html. This is causing the URL rewrites to create URLs that end ...
0
votes
1answer
154 views

added .html suffix to products & categories but they are not showing with suffix

decided to go from no suffix to adding the .html suffix in due to an easier time redirecting currently existing urls. all of my products had been imported without any suffix. when I switched the ...
1
vote
2answers
547 views

How to get the public product url for simple products (not visible individually)

I am getting the 404 error every time I am trying to get the correct URL for a product. I want to go to the specific url for that product, is there a specific magento solution to do this? I tried with ...
2
votes
1answer
316 views

Add product sku in URL

How can I dynamically change the url of a product? Now I got this url www.domain.com/product-name.html I need to add SKU, to my url like this: www.domain.com/product-name-SKU.html
0
votes
1answer
237 views

Magento URL key including / redirect to 404

I would like to generate url keys with '/' of products. I have override the \Enterprise_Catalog_Model_Product_Attribute_Backend_Urlkey::beforeSave method and generated url key as per requirement. My ...
0
votes
3answers
2k views

How can i bulk export Products like sku, products name, request path and Target path

I need to How can i bulk export Products like sku, products name, request path and Target path, is there any way I can bulk download request path and target path url.
2
votes
3answers
10k views

Magento2 product url displaying with category and product id

Product urls are displaying with category and product id Now url is displaying like below http://localhost/magento2/catalog/product/view/id/1234/category/12/ But i want http://localhost/magento2/...
0
votes
1answer
851 views

Old product url to new product url redirect in magento 1.x

Well this might be duplicate of others but it didn't got my answer... Okay so I want to redirect user from old product url to new product url so by googling I've found following code.... Here I'm ...
0
votes
1answer
41 views

Automatic URL rewrite after deleting a product

Is there any way in magento to make an automatic url rewrite to the category of the product, after deleting that product?
4
votes
1answer
693 views

Magento 2.1 Product url shows two times suffix

My store product url shows two times .html as suffix like below http://localhost/m2migration/canape-chesterfield-assise-capitonnee-cuir.html.html This issue arised after ubertheme migration. Can you ...
1
vote
0answers
136 views

Product URL issue when same product assigned in multiple category

I need to know how exactly Magento creates URLs when the same product is added into multiple category and when include category path in product URL is set to "YES". Will it create two separate URLs ...
0
votes
3answers
677 views

Get Product Url return 404

I want to get product's url so i use getProductUrl() in result its return a url address that seems be correct but its not,When i want to open it the store return 404 not found error. $product = Mage::...
0
votes
1answer
305 views

Cleared core_url_rewrites and lost custom urls

I was having an issue with the urls on the frontend with numbers like "-1" appending to the end of my product's url keys. I completely cleared out the core_url_rewrites and reindexed however now the ...
1
vote
2answers
488 views

Product url's ends with html.html

I have migrated all my products from Magento 1.9 to 2.0. All the products url's are ending with .html like html.html sample link: http://www/domain.com/condenser-microphone.html.html
1
vote
1answer
1k views

Get SEO friendly product url in Magento [duplicate]

I have a template file that 'gets' the product url so that I can produce a link to the product. However, the url called is not the SEO friendly version. Can anyone suggest an edit to the code below so ...