Questions tagged [url-rewrite]
Denotes questions about URL Rewrites Management.
800
questions
0
votes
0
answers
3
views
How can I create redirects from old URL keys to new ones using a CSV import in Magento 2.3.5-p1?
I have updated the 'url_key' column in my Magento CSV file and imported it successfully. However, the old URLs are still returning a 404 error, even though the new URL keys have been updated correctly....
1
vote
3
answers
44
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 ...
0
votes
0
answers
6
views
URL Rewrites / Cloned Categories
I have just switched a root category over for our store and the URL rewrites have not applied. Any idea how I can resolve this?
Cheers
0
votes
1
answer
109
views
How to create different URL of a Single page in magento 2
How can i make different url of a single page
0
votes
1
answer
16
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\...
0
votes
1
answer
79
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 ...
0
votes
2
answers
23
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 &...
0
votes
0
answers
11
views
Delete target path programmatically from sitemap.xml file
Hello there added custom URL Rewrites for basically every path.
For every path the custom URL Rewrite works fine, except for this one:
In sitemap.xml I see the both paths (request path and target path)...
0
votes
1
answer
73
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 ...
0
votes
1
answer
105
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 ...
1
vote
0
answers
73
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 ...
0
votes
2
answers
180
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 ...
0
votes
0
answers
119
views
Getting Magento\Catalog\Model\Category\FileInfo::removeStorePath() error on Magento 2.4.4
If I change the category url , I am getting this error message:
Unique constraint violation found
Argument 1 passed to Magento\Catalog\Model\Category\FileInfo::removeStorePath() must be of the type ...
0
votes
1
answer
30
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 ...
0
votes
0
answers
18
views
On frontend when we click one menu and go for other menu its show 404
On frontend when we click a menu item, for example www.example.com/shop/food.html, that will open. However on that page, if we click on another category menu it shows 404 and goes to a URL such as www....
0
votes
0
answers
95
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 ...
0
votes
0
answers
15
views
How to remove only sub-category from URL key Path in Magento 2?
I need only remove sub-category in URL key. I want to put only parent category in URL path
Currently path is : http://localhost/noida-products/shop-by-category/criket-kit.html
Require path is: ...
0
votes
1
answer
182
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.
0
votes
0
answers
196
views
Use category path for product url in magento 2
I have done the settings for Including the category key in the products url, which works fine https://prnt.sc/X0uTHHPyff0J . However , for Related products it is still taking the old url and not the ...
0
votes
0
answers
41
views
Magento 2.4.2: Wrong Product URLs are being generated for some products
I am having an issue where URLs of some products are being generated like this:
I have tried regenerating them using: https://github.com/olegkoval/magento2-regenerate_url_rewrites but it did not work....
0
votes
1
answer
115
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 ...
0
votes
1
answer
170
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/...
0
votes
0
answers
41
views
Magento 2.4 Redirects - Bulk Import using XML?
I have almost 800 links coming up in Google 404 that I need to add redirects for. I see how to add them manually one at a time but I do not see the functionality for a bulk import unless I am missing ...
1
vote
1
answer
64
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://...
0
votes
0
answers
15
views
4th level category page redirects to 3rd level category page
We have Categories to the 4th level in our Magento Store and the site's main URL is set without www. So now when we go to the 4th level category and put www with site URL, it redirects to the 3rd ...
1
vote
0
answers
30
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 ...
1
vote
1
answer
70
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 ...
0
votes
1
answer
955
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
1
answer
212
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
1
answer
88
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
1
answer
553
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
1
answer
265
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
0
answers
380
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.
1
vote
2
answers
130
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
1
answer
410
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
1
answer
185
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
0
answers
27
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
1
answer
354
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
1
answer
69
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
0
answers
145
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
0
answers
124
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
2
answers
834
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
1
answer
510
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
1
answer
109
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
1
answer
177
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
2
answers
1k
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
0
answers
205
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
1
answer
517
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
0
answers
646
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 ...
2
votes
1
answer
409
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.
...