Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

Magento 1.9.1. CE : Disabling core_url_rewrite

I'm looking for an effective solution to disable completely core_url_rewrite table. I've disabled the Url Rewriting on the backend, but each time i add or update a product, an url_key is written to ...
4
votes
0answers
33 views

How to make product url-key with capital letters

I am trying to make my product url-keys in capital letters. Even if I update it manually it is still showing all in lower case letters. Upon checking the url-key after saving the product again it is ...
4
votes
0answers
131 views

Magento 2.3.1 - URL rewrite rules are not creating for product after update url key

Any one faced below issue in default Magento 2.3.1 and if found any solution then please help us to solve this. We are facing an issue with URL rewrite rules in fresh Magento 2.3.1 version. Issue: ...
4
votes
2answers
1k views

Magento 2| Url regeneration for catalog

I have tried to regenerate urls for categories and products after migration from Magento 1.9.x to Magento 2.2.x through following modules: Url Regenerator 1 Url Regenerator 2 These 2 generates the ...
4
votes
0answers
300 views

Catalog URL Rewrites not working

My product pages show 404 page. There is something wrong with the catalog URL rewrites. Screenshot below. The error message I see is Invalid backend model specified: enterprise_catalog/...
4
votes
1answer
546 views

Magento 2 URL rewrite appending .html.html

I've migrated my store from version 1.9 to 2.1.1 using a tool. However all the old products are appending html.html at the end of the URL. I basically truncate the url_rewrite table and saved all the ...
4
votes
1answer
642 views

Case insensitive product urls

Does anyone have a good solution for making magento products' URLs case insensitive? Obviously I've looked into: <IfModule mod_speling.c> CheckCaseOnly on CheckSpelling on </...
4
votes
1answer
740 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 ...
3
votes
5answers
9k views

Catalog URL Rewrites Error

I have tried everything possiable. I upgraded my Magento from 1.7.X to 1.9.X then just upgraded to Magento 1.9.2. Over the last couple years. Going from 1.7 to 1.9 had no problems. All is well however ...
3
votes
3answers
3k views

Magento 2: Bulk 301 rewrite imports

Read this great reference for creating a csv for import but this was for Magento 1 and it states you only need store_id, id_path,request_path, target_path, options but these headers won't work for ...
3
votes
1answer
9k views

How to get URL rewrite Target Path programmatically

I need to get programmatically the "Target Path" field that I have set in the Magento 1.8 Admin Panel, using Catalog -> URL rewrite management. How do I get it?
3
votes
1answer
6k views

Magento 2: How can I remove all products URL rewrites?

I've used a script to TRUNCATE all tables related to products, so removing all products in my store. Now I want to remove the more than 4k URL rewrites related to those products removed, though, ...
3
votes
2answers
6k views

Magento2 Product Page 404 Error Caused by URL Rewrite Not Working As it Should

We have a 404 issue on all product pages. Category pages showing fine as they should. Having imported circa 4000 products directly into our Magento2 store database and uploading images directly to the ...
3
votes
2answers
4k views

Magento 2 - rewrite checkout and account url

What would be the proper way to rewrite/translate Magento 2 checkout and user account URL's to make them localized for my language? 1. Checkout Current checkout URL's are: domain.com/checkout ...
3
votes
5answers
8k views

How to redirect a category page link to CMS page link in Magento 2

I want to redirect my category link to some cms page. Could anyone tell me how to do so? Any help will be appreciated. @Kho TruongDinh As you specified, I have used URL rewrite, but it did not work ...
3
votes
3answers
4k views

Duplicate Product URL Key

I have products using the same URL Keys and I need a way to remove all of the URL Keys, so Magento regenerate them all according to their names.
3
votes
1answer
501 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 ...
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 ...
3
votes
4answers
1k views

Magento2: How to modifiy http header of page?

I am trying to modify HTTP header for current URL. I want to set 410 status if current page header is 404. below code I used but I have created new controller so it always set 410 for that controller ...
3
votes
6answers
10k views

Magento 2: How to renew the category URL rewrites?

I cannot get Magento 2 to renew URL rewrites for categories. I was forced to clear url_rewrites table after some weird problems happened after importing categories and products. Now I get something ...
3
votes
3answers
3k views

How to remove parent category from subcategory URL?

I want to remove the parent category from the subcategory URL. For example, I would like to change: www.magento2.com/Category1/Category2/gear/bags.html to www.magento2.com/bags....
3
votes
1answer
182 views

Stop generating URLs for German, Russia and French after reindexing catalog_url rewrites

Can anyone please let me know how to stop generating urls for German, Russian and French stores after reindexing catalog_url. I tried disabliing stores in the system --> admin --> Manage Stores but ...
3
votes
1answer
3k views

Manufacturer in product url key

I am trying to have all product url keys automatically generated this way: site.com/manufacturer-productname-sku.html I managed to add the SKU adding to the file /app/code/local/Mage/Catalog/Model/...
3
votes
2answers
8k views

Magento install in subfolder of ServerRoot: how to use server rewrites to get rid of subfolder in all URLs

I would like to summarize: I want to know if it is possible to install Magento on Linux with the following configuration: I do not have root access and so cannot modify the DocumentRoot directive to ...
3
votes
1answer
1k views

Magento2 Product / Category URL not showing SEO Friendly

I am facing issue with product URL. Please open link below http://new1.nufoot.com/catalogsearch/result/?q=GREEN+BAROQUE+BETSY+LOU+NUFOOT So when you click on 1st product - GREEN BAROQUE BETSY LOU ...
3
votes
6answers
14k 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-...
3
votes
1answer
1k views

Strip index.php from Magento nginx github configuration

I am currently on a Magento-1.9.2.2 with Nginx 1.6.2 and using Magento Nginx Github Conf and shop.com takes me shop.com But if I click any link, I see a structure like: shop.com/index.php/category1 ...
3
votes
4answers
2k views

Reindex catalog categories url issue

My problem is that all of the categories url are not working. There are in some kind of infinite loop so I tried to reindex from admin panel. The result are the same: infinite loop. After that I ...
3
votes
1answer
484 views

URL Key for product doesn't accept hyphens

When editing a product I migrated over from a woocommerce store and NOT changing the URL Key I get the following error. Hyphens are a must in URL Keys, what can I do Thanks! EDIT: Disabling the ...
3
votes
3answers
2k views

Remove default store code from URL

How I can remove store code from default store URL of my website? Actually www.domain.com/it/ **DEFAULT STORE** www.domain.com/en/ **ENGLISH STORE** I Need www.domain.com/ **DEFAULT STORE** www....
3
votes
1answer
3k views

How do I get Magento to always give the /catalog/product/view/id/ style url for products?

I want Magento to always generate product urls in the format: www.example.com/catalog/product/view/id/123/s/product-name.html instead of the rewritten www.example.com/product-name.html The ...
3
votes
1answer
8k views

How to rewrite url for custom controller path?

I have created a controller for my custom module. My controller path is like http://www.example.com/test/index/index which is displaying page correctly. I want to perform URL-rewrite for converting /...
3
votes
1answer
489 views

User redirected to a really bad URL after logging into Magento-based site with Safari on Mac OSX & iOS [closed]

I really don't know what to call this. It seems only to happen on both Mac OSX and iOS with Safari. It doesn't seem to affect Chrome even though they are both Webkit-based. I'm working on a B2B ...
3
votes
4answers
2k views

Accessing directly one server from a load balancer

I have my magento website at http://www.domain.com. This is linked to the load balancer with 4+ webserver behind. I need to set up an url like http://www.front1.domain.com to access directly one of ...
3
votes
3answers
99 views

Magento not using URL rewrites in product display or for incoming links

All the links on my Magento 1.14.2 site are showing up as (literally): ".../catalog/product/view/id/1234/s/my-really-cool-product" instead of ".../my-really-cool-product" Reindexing seems to build ...
3
votes
2answers
380 views

Magento 2: How to generate category url with underscore?

I am importing categories from external script. All working fine with import. But with URL KEY Magento is changing value automatically. And I want the url same as I am passing from script. 1) ...
3
votes
1answer
917 views

Remove Parent Category from child category URL

How can I edit this: public function getUrlPath($category) { if (in_array($category->getParentId(), [Category::ROOT_CATEGORY_ID, Category::TREE_ROOT_ID])) { return ''; } $path =...
3
votes
2answers
4k views

How to solve an error 404 with Nginx after login on dashboard?

Magento 1.9.2.1 Nginx 1.8.1 I'm trying to set up a Magento shop, a development server with Nginx for further change. Currently, it runs on a server with Apache. Developing I have no problems with ...
3
votes
3answers
3k views

Unable to Reindex 'Catalog URL Rewrites'

Hi I have been looking for an answer to this all over however I cant find an answer that helps. Whenever I try and reindex all of the data within the admin panel I seem to get this error: So far I ...
3
votes
1answer
980 views

Moving Categories

What's the best way to move a large number of categories? For example moving a level 2 category and all its children to being a level 1 category with level 2 children: Level 1 - Level 2 -- Level 3 --...
3
votes
0answers
52 views

How to set custom rewrite in Magento 2

I am moving Magento 2.2.7 to new version 2.3.2. Theme migration has just finished, but some urls not working. e.g In original site https://www.magento.com/media indicated to pub/media, but in my local,...
3
votes
4answers
3k views

Magento 2.2.4 The value specified in the URL Key field would generate a URL that already exists

when I have the category in product assign and saving category below error showing The value specified in the URL Key field would generate a URL that already exists. To resolve this conflict, ...
3
votes
0answers
297 views

Magento 2 custom module friendly URL's

I have my url structured like so: "http://domain.com/post" where post is my module's main router url. Then for each post I have: http://domain.com/post/category/view/id/1. and my url rewrite is ...
3
votes
3answers
435 views

Error with Catalog Url Rewrites based on category

I actually have exactly the same problem as posted here An error occurred while saving the URL rewrite after upgrading from CE 1.9.0.0. to 1.9.3.3. I get the error: An error occurred while saving the ...
3
votes
1answer
1k views

Get frontend category URL in admin area with correct base URL

I try to load categories in the admin area with store specific values. $this->categoryCollectionFactory->create() ->setStoreId($storeId) ->addAttributeToSelect(['name', 'url_key'])...
3
votes
1answer
3k views

Remove parent categories from subcategory in URLs in 1.9.2.3

Magento version is 1.9.2.3. I have tried following solution which doesn't work for me. Step 1: Go to app/code/core/Mage/Catalog/Model/Url.php copy this file to app/code/local/Mage/Catalog/Model/Url....
3
votes
3answers
295 views

Anyone know of a tested script to regenerate url-keys?

I have a client with a pre-existing Magento site in production mode. When the site was created the client was not informed of the importance of the url keys attribute in that he had to make it SEO-...
3
votes
0answers
27 views

Enterprise Catalog Routing & Rewrites [duplicate]

I'm working on a Magento Enterprise site and I'm having an issue figuring out how catalog routing and rewrites work in EE 1.14.1.0. In Magento CE, the core_url_rewrite table is used to transform a ...
3
votes
0answers
65 views

Magento URL rewrite - dynamic [duplicate]

In My Magento website, There are around 1800 URLs which follow this pattern www.mywebsite.com/(subcategory)/brands-1/(brand) These need to be redirected to www.mywebsite.com/brands-1/(brand) Can any ...
2
votes
3answers
14k views

Cannot reindex Catalog URL Rewrites

I get the following error when I try to reindex my Catalog URL Rewrites. Product Attributes index was rebuilt successfully Product Prices index was rebuilt successfully Catalog URL Rewrites index ...

1 2 3 4 5 15