Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 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 ...
0
votes
1answer
34 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. ....
0
votes
1answer
27 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
1
vote
1answer
24 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 ...
1
vote
1answer
21 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 `...
0
votes
1answer
25 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 ...
0
votes
0answers
18 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.
0
votes
0answers
15 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 ...
0
votes
0answers
19 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....
0
votes
0answers
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-...
0
votes
0answers
12 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 ...
0
votes
0answers
9 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 ...
0
votes
2answers
23 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 ...
0
votes
0answers
16 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 ...
0
votes
0answers
13 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 ...
0
votes
0answers
148 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 ...
0
votes
1answer
77 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 ...
0
votes
1answer
55 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" ...
0
votes
0answers
10 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
0
votes
1answer
30 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?
1
vote
1answer
56 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 ...
2
votes
0answers
78 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 ...
1
vote
0answers
44 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 ...
0
votes
0answers
11 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;...
0
votes
0answers
13 views

Regenrate url error in magento 2.3.3

I have changed the url key for my product https://nimb.ws/54OkFK. The url rewrite is also generated. I used https://github.com/olegkoval/magento2-regenerate_url_rewrites module to regenerate url. In ...
0
votes
0answers
66 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 (...
0
votes
1answer
62 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 ...
0
votes
0answers
11 views

URL rewrite having query string via htaccess in magento 2

I have current URL like this: http://localhost/projectname/industries/index/index/industry/aircraft (Here industries is the frontend route, index is controller and second index is action industry is ...
0
votes
1answer
49 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 ...
1
vote
1answer
44 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 ...
0
votes
0answers
11 views

how to display menu from the data of the Sutunam module in the weltpixel module in magento 2

comment identifier comment seront renseignés les liens dans weltpixel pour recréer le menu à partir des données du module Sutunam (sutunam_menu pour les entrées de menu (avec sutunam_menu_store pour ...
0
votes
0answers
25 views

Magento URL Rewrite - Extract match string and redirect to new path

I have URL For example mydomainname/dir1/dir2/dir3/dir4/abc.jpg I want to redirect dynamically to all matching URL mydomainname/dir4/abc.jpg //Want extract some part and redirect to reaming part of ...
0
votes
2answers
104 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....
0
votes
0answers
51 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 ...
0
votes
1answer
68 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 ...
0
votes
0answers
223 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 ...
0
votes
0answers
17 views

Delete related url_rewrites when category is deleted

Any one have idea when we delete a Category from the admin panel does it also deletes the url_rewrites related to that category or do we have to delete those manually. Note: if we don't delete the ...
2
votes
1answer
166 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. ...
0
votes
1answer
59 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/...
0
votes
2answers
45 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 ...
0
votes
0answers
8 views

Magento 1.7 - SEO URLs - Rewrite URL in Sitemap for Products

we have Magento 1.7 in use. We would like to read our SEO URL for the products from the database. We have found that the attributes for "url_key" do not match the URL from the sitemap of ...
0
votes
0answers
43 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->...
0
votes
1answer
26 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 ...
0
votes
0answers
9 views

Remove products url from Google search one store view

I have multiple store views. Want to remove product url only for one store view
0
votes
0answers
14 views

Setting Up Custom URLs For Each Option/Swatch of a Variable Product

A client wanted to setup where he sells fabric and related stuff and wanted each variation on a different URL. So example, he sells a shirt with the colors red, blue, and black. Upon landing on the ...
0
votes
1answer
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/...
0
votes
1answer
132 views

Magento2 Optimize url_rewrite table

We have recently migrated Magento1 to Magento2.we found that url_rewrite table has almost 16000000+ rows. M1 site was build before 6 years and the url rewrite table has increased over the years. This ...
3
votes
0answers
162 views

Magento 2 404 page is redirecting to catalog search page

Magento 2 404 page is redirecting to the catalog search page. Example- www.abc.com/test123 it will redirect to the 404 page but it is redirecting to www.abc.com/catalogsearch/result/?q=test123 How to ...
0
votes
1answer
289 views

Magento 2 - remove .html from URL by using .htaccess

We have some wrong URLs in our store ending with .html. If the user opens such a URL, then the .html should get removed, otherwise the site cant get found. So I added this rule to my .htaccess file in ...
0
votes
1answer
16 views

Duplicate url issue when removing products from category in magento 2.3.3

When i try to remove products from category https://prnt.sc/vl7rt3, i get duplicate url error. https://prnt.sc/vkscz9. I know how to resolve it. but need to understand when a product is removed from a ...

1
2 3 4 5
16