Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

0
votes
0answers
13 views

Magento 2: Use Categories Path for Product URLs is not working

I have two products having the same attributes as categories, attribute set, etc. And I have set Use Categories Path for Product URLs as NO but still, one product has the category in URL another don't ...
0
votes
0answers
3 views

Magento 2 Create Url Rewrite from configuration system.xml

How to create url rewrite from system.xml configuration for particular store view when saved. Best!
0
votes
2answers
42 views

Magento 2 - 500 Internal Server Error

sorry for creating another 500 Internal server error thread but I couldn't find any solution for my problem yet. We have a managed server from German provider 1&1 and we have a running magento ...
0
votes
1answer
14 views

Headless Magento 2: Need custom URL instead of domain/products/:SKU

Fairly new to to magento. I am going for a headless approach, where I have created product listing pages with URLs as: www.domain.com/products/:productSKU I want to change this to something like: ...
1
vote
1answer
20 views

SEO URLs in custom module

I have a module built in magento 2.1.16 which store details of contacts in database and fetches them on list page and details view page. The contacts are of 3 types Branches (https://roadmaster.com....
2
votes
2answers
57 views

URL Rewrite Duplicates and Product URL

My headache begins with a common URL Rewrite issue. I am running Magento 2.3 and rely heavily on an extension called Firebear Import / Export to handle my suppliers CSV feed imports. Let's say in ...
2
votes
1answer
27 views

Url rewrites not matching URL key

this store is in Magento 2.3.0, and I'm running into an issue regarding url rewrites/keys. On the product, I've set the url key as example-key, but only example-key-extra-stuff works -- that being ...
1
vote
1answer
63 views

Magento 2 : URL Rewrite management

In magento 2, I want to do like this below way : http://php722.local.com/m231/products/category1 => This is category url (Products is main category and category1 is sub-category of products) Now, ...
1
vote
2answers
32 views

Magento 2.1 Redirect through htaccess

I am unable to 301 redirect URL like baseurl/blog/international%20enviroguard%20re-branding%20-%20faqs/ to baseurl/blog/international-enviroguard-re-branding-faqs through htaccess. The page is ...
1
vote
1answer
21 views

Category name on product url still working after “Use Categories Path for Product URLs” set to no

"Use Categories Path for Product URLs" set to no on admin panel But everytime I create a new product, it creates rewrite also for category/product url So both of them work: example.com/category/...
0
votes
0answers
38 views

magento 2 category url_rewrites issue

I am using Magento 2.3 when I create new category and check url_rewrite and front end that url generate like this domain.com/parent.html/subcategory.html instead I need url like domain.com/parent/...
3
votes
1answer
49 views

Magento 2 - Get URL data by request path

I have gathered URLs from sitemap.xml now I need category ID against category URL and Product ID against product URL. I want to do it by getting URL data from url_rewrite table In Magento 1.9 we use ...
0
votes
0answers
35 views

Magento2 Cloud: Make URL Rewrite CRON RUN

I am willing to import URL rewrites provided by my client in Magento Cloud EE edition (2.2.5). I followed all steps mentioned here: (https://devdocs.magento.com/guides/v2.2/cloud/configure/import-...
1
vote
2answers
43 views

How to modify the custom module URL?

I have created custom module i.e /stores/index/display. But I want to modify the /stores, How can I do that?
0
votes
0answers
22 views

Url Rewrite Issue in product duplication

I am facing a weird situation regarding product url rewrites on product duplicates. I do have multi stores like French and English store out of which French is currently disabled. When we duplicate ...
1
vote
0answers
32 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 ...
0
votes
0answers
18 views

Magento 2 Multistore URL Rewrite htaccess

Hi this might look like a repeated question, but I think my case might be very specific. It turns out that I have a project that has 2 stores and 3 store views, the client asked for a upgrade from M2....
0
votes
0answers
32 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 ...
1
vote
0answers
10 views

Migrating from M1 to M2: need to / want to rename multiple attributes

in our mission to migrate from M1 to M2 we need / want to rename attributes that we have named say 7 years ago. So product attribute 'manufacturer' would become 'brand' and product attribute '...
0
votes
0answers
91 views

URL rewrites not working Magento 2.3.0

I am having an issue with URL rewrites in Magento 2.3.0. URL rewrites are of course turned on and most URLs have been rewritten but there are some which have not been. They are included in the ...
0
votes
1answer
37 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'...
2
votes
1answer
42 views

Remove '.php' from url redirect [closed]

I have an URL like: base_url/cloths/mens.php now when we click on this above URL then it should redirect to: base_url/wp/cloths/mens/ here we want to remove .php extension from URL after ...
2
votes
0answers
33 views

Magento 1.9 rewrite/redirect issue

Magento is redirecting to the wrong url. Checked htaccess as I thought there is a problem but not, there is no redirect for this url. So I've checked rewrite table but there is no obvious cause. For ...
1
vote
1answer
23 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/...
1
vote
1answer
106 views

Magento 2 product attribute filter url rewrite?

I have override url-rewrite router in my custom module,and add my custom rewrite code in override router file. after filter url created like below : http://domainname.com/services.html?manufacturer=...
2
votes
1answer
25 views

Magento 2 Make GET Request url to rewrite acceptable

For example I have this url which makes get Request and renders block with specific collection by Id. mainpage.com/products?some_category=99 Since Magento 2 Url Rewrites only accept /params/...
1
vote
1answer
24 views

Magento 2.2.5 Delete Url Rewrites older than 1 Year

Is it possible to delete Url_rewrites older than one year? We have migrated from Magento1 to Magento 2 and kept all URLs for SEO reasons. BUT the table in Mage1 and Mage2 is really huge. Now we want ...
2
votes
2answers
128 views

Magento 2 query url rewrite

If I have URL like this - mainpage.com/products?test_category=99 and want it to be rewritten to this mainpage.com/testproducts Since magento2 URL rewrite won't take query how can this be ...
0
votes
3answers
55 views

Get browser URL magento 2

I want to get URL which is passed in the address bar but problem is that in my .htaccess there is a code for the rewrite I don't know for that reason or something else I got other URL which is not ...
0
votes
2answers
40 views

How to write rewrite url for index.php as a request path

I want to write URL rewrite for index.php as a request path and it should be redirected to the home page
1
vote
0answers
17 views

Localize contacts URL store wise

In Magento 1.9, I have 3 stores(English, Dutch, French) in 1 one website. I am trying to localize contacts url to store wise like below. Magento's Default. English Store : www.example.com/en/...
0
votes
1answer
79 views

Contact Page URL Change: Magento 2

I have tried to changed the default URL of contact page in magento2 to my custom URL but it is not working at all. I have tried as follows: Put the following code in my custom module.xml <config ...
3
votes
0answers
47 views

No index on the url_rewrite table

Is there any reason why there is no index on the entity_id column on the url_rewrite table? Or on entity_id and entity_type? The only index I see is on entity_id and store_id. I understand that that ...
2
votes
0answers
59 views

How to add a custom attribute value to product url in Magento 2

I am using Magento ver. 2.2.3 . I need to add a custom attribute's (brand) value to the product url, like : http://domain.com/smeg/smeg-cooker-90cm-with-gas-hob-cream.html For that i have overridden ...
1
vote
1answer
36 views

Rewrite product page URLs based on that product assigned attribute URLs in Magento 2.3

I want to achieve product URLs based on product attribute for product page only. I have product attribute manufacturer, having drop downs such as lg, samsung, motorola etc. My store category ...
0
votes
0answers
141 views

Magento 2 Generate Product Url Keys?

We have imported simple products into magento 2 without url_key earlier. front-end also working fine. https://prnt.sc/mia64k But we would like to generate url_keys for those products. ...
0
votes
0answers
12 views

Many categories are throwing a 404 - at a loss on how to investigate further

I learned today that our website was throwing 404s on many of our category pages. The only process that I think that could have triggered this was the execution of magerun index:reindex:all which had ...
0
votes
1answer
111 views

Migration tool causing url_rewrite duplicates in Magento 2 leading to missing categories in Navigation

I am currently attempting to Migrate data from Magento 1 to Magento 2. I ran the Ubertheme Magento "Data Migration Pro" tool several times in the course of trying to Migrate our information over from ...
0
votes
0answers
12 views

How can we retain full path url for related products when we import data in bulk?

We have loaded data for the related products using bulk import functionality in our Magento admin panel. But the urls of the products are redirecting us to the category listing page instead of the ...
0
votes
0answers
72 views

Magento 2 keeps adding category path to product url in multistore

I have a little problem in Magento 2 Multistores... My URL rwewrites keeps adding category paths to products urls even when config settings "Use category path for product URLS" is set to "no".. I ...
0
votes
0answers
62 views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
2
votes
0answers
33 views

Magento 2 - Unable to access the Category page without index.php

I have Magento 2.3.0 recently upgraded. In which, I removed index.php from the base url, every where its working fine. Even in Category Page, except for one category page. I can only access that ...
0
votes
0answers
54 views

Remove Duplicate admin URL in Magento 2

Hi I have stuck using magento 2 where I want remove duplicate admin in the URL,this my url : https://example.com/admin/admin/system_config/edit/section/web/key/a986525f4db93c0abcda3b1d1cbb3/ and I ...
0
votes
0answers
22 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
0
votes
0answers
18 views

how can I change the category and url structure?

How can I change the magento 2 url structure ? For categories I would like: Bike Bike/Shoes Bike/Shoes/Mens etc.... for products I would like the product name i.e /etnies-cyprus-scw-x-32-shoes-...
0
votes
1answer
33 views

Duplicate url rewrite for the same product_id

i'm new on magento developement. My "core_url_rewrite" datatable contains 3.000.000 records for 3.000 products. For a given target_path, i have 1000 records but i dont known why Please help. thanks
1
vote
0answers
16 views

Sub Category - Load By Attribute (name) URL issue, how to resolve?

Mage::getModel('catalog/category')->loadByAttribute('name', $val)->getUrl(); The above code won't work correctly in my PHP code when I have multiple categories & sub-categories with the same ...
1
vote
0answers
65 views

Magento 2 - add custum attribute to urlrewrite programmatically

I am trying to regenerate the urlrewrites on magento 2.3. They are now created by the pruducts name /artist.html but i would like to to add some custom attributes. /astist-title-format.html to ...
1
vote
0answers
23 views

Magento1.9 URL Issue for Duplicate Name Products

I am facing an issue where On my store more than 2 products have the same name things are going fine on a low range of products, As Magento will update URL on saving in the catalog_url_rewrite table ...
0
votes
0answers
48 views

How to get Product Rewrite url in magento 2 by Query

I need Rewrites URL in Magento 2 by query. I tried below code. <?php namespace Dev\Core\Helper; use Magento\Framework\App\Helper\Context; use Magento\Framework\App\ResourceConnection; class Cart ...