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.

4
votes
1answer
605 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
630 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
8k 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
2answers
4k views

Why is my url added to the enterprise_url_rewrite table but not core_url_rewrite?

Redirects in Magento have me utterly confused. Enterprise 1.13 has not helped the situation. My problem is this, I want to add a product link widget to the home page but newer products do not show up. ...
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
2answers
5k 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
3k 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
7k 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
2answers
2k 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
966 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
2answers
252 views

How to create wild card sub domain in Magento 1.9.x

I am coming with question of how to create a wildcard subdomain in Magento 1.9.x without using store view. I know creating more store view will cause the issues in price indexing, flat tables, etc., ...
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
87 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
3answers
2k 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
930 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
180 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
424 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
73 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
1answer
705 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
3answers
1k 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
7k 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
480 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
1k 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
2answers
279 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
5answers
10k 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
823 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
3k 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
1answer
2k views

Product POST call to Magento REST API results in 302 and redirect (Nginx)

Having an issue when POST'ing to the Magento 1.9 REST API. Magento is being served by Nginx 1.8.0 using OAuth (successfully authenticating). My Magento rewrite config for the API looks like this: ...
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
0answers
50 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 ...
3
votes
1answer
40 views

Update redirection URL

I try to insert or update the grid in the BO: Catalog > URL Redirects I use the following code: $storeId = 1; $fromUrl = "my_old_url"; $toUrl = "my_new_url"; $rewrite = Mage::getModel('...
3
votes
0answers
274 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
2answers
342 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
0answers
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
2k 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
285 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
26 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
63 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
13k 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 ...
2
votes
5answers
4k views

Custom Catalog URL Rewrites deleted after reindex

This is not a new question, but. nowhere I'm able to find the answer to this question. When I reindex Catalog URL Rewrites, my custom rewrites get deleted/overwritten(???). Below is an image of the ...
2
votes
1answer
1k views

Delete url rewrite programmatically

I need to set some url rewrites for different pages. But when I started my CLI script, I had some issue "Request Path for Specified Store already exists." That's why I need to delete this url rewrite ...
2
votes
4answers
9k views

Remove parent categories from subcategory URLs

I realise similar questions have been posed before, but I have an additional caveat when I ask the following question. How can Magento URLs be rewritten such that: http://www.example.com/category/...
2
votes
2answers
1k views

Redirect to homepage after submitting e-mail in Forgot password page?

When customer submit his email in Forgot Password page he is redirected to the Login or Create an Account page. How could I redirect users to the Homepage or to the Onepage Checkout page?
2
votes
3answers
5k views

Custom URL rewrites for categories and products

we have category and product URLs already indexed by google so we need to add/modify Magento URL Rewrites to match those URLs. We are migrating one of the ecommerce store from yahoo to magento, but we ...
2
votes
1answer
4k views

get product seo url from id [duplicate]

i want to get product seo url from id below is code i used to get url from id $my_product = Mage::getModel('catalog/product')->load($id); $my_product_url = $my_product->getProductUrl(); but ...