Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
113 votes
13 answers
76k views

Magento core_url_rewrite table excessively large

I've noticed a large amount of reports that this table itself can become extremely cluttered, I'm running a site with ~5000 SKUs and ~250 categories (single-store) and a resultant core_url_rewrite ...
Moose's user avatar
  • 7,495
36 votes
10 answers
83k views

How to delete and regenerate URL rewrites in Magento 2?

I have recently created 2 additional store view on magento 2 store. Now the url of category and Products are not for those stores is not proper Eg: http://example.com/catalog/category/view/s/pouches/...
Arun Karnawat's user avatar
6 votes
2 answers
9k views

Redirect 'non www prefix to 'www' prefix still not working after disabling 'Auto-redirect to Base URL'

Magento install was redirecting all 'non-www' urls to the root home page. I found these questions on the same subject: Redirected to the Homepage when add www. in any URL Redirected to the Homepage ...
moobot's user avatar
  • 248
5 votes
2 answers
3k views

How to re-write the default URL's?

Here is the list of some default URL. /customer/account/login /checkout/cart /customer/account Is it possible to change these URL's or rewrite this URL's? I've tried default URL rewrite methods in ...
Nikhil's user avatar
  • 249
3 votes
1 answer
2k views

Core Url Rewrite bug in Magento 1.8?

I remember there was a bug in Magento 1.7 and EE 1.12 which generated URL writes each time a category was saved. We noticed this when clients started seeing millions of URL rewrites. There was a patch ...
brentwpeterson's user avatar
27 votes
4 answers
17k views

Clear All URL Rewrites - Enterprise (1.13)

After several messed up imports, I've been left with a load of URL rewrites that I need to remove. I'm running Enterprise 1.13 When I've had this problem in community, I've simply truncated ...
JamesAllwood's user avatar
  • 1,543
6 votes
2 answers
3k views

Magento turn off URL rewrites for invisible products

I have my products made as "configurable products" and it's around 300 of them. And they have around 10-20 simple products associated (each). But 2 of my configurable products have around 3000 simples....
mkutyba's user avatar
  • 460
4 votes
1 answer
9k views

rewrite url using config.xml

I'd created a module and the url for the same is something like: http://magento.korenpub.com/designer/index/index/id/26/value/Joseph%20B.%20Soloveitchik but I need to rewrite the url to http://...
Mohammad Faisal's user avatar
3 votes
2 answers
7k 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 ...
g5wx's user avatar
  • 681
3 votes
1 answer
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/...
Stefano Piva's user avatar
1 vote
1 answer
215 views

Is Possible Main Category URL Rewrite Management?

My Category Name : Test URL Rewrite Management In Localhost If i click the category name Test, the URL redirect to http://194.0.0.24/abcd/catalog/category/view/id/30 How can i solve this issue?
zus's user avatar
  • 165
27 votes
3 answers
62k views

Correct way to change the magento 1.9 admin url

Correct way to change the Magento 1.9 admin url anyone can provide me the correct way. I see a lot of different suggestion online.
jweak13's user avatar
  • 271
9 votes
2 answers
3k views

Magento 2 .2 - How to add Static Product Prefix to Product Url?

I would like to add a Product Prefix (Static Path) to product URLs. Something like www.test.com/product-prefix/product1.html So all products url of the website follows the same structure - www.test....
Manthan Dave's user avatar
  • 9,816
7 votes
4 answers
28k views

How to redirect a category to another link?

I have an extension in my store that I can upload posts with this and it has a link in the top menu that' name is blog. In the menu, I have a category that's name is News and I want to redirect it to ...
Elham Gdz's user avatar
  • 605
7 votes
2 answers
13k views

Magento url key has strange numbers added by the system Magento 1.7.0.2

I've been pulling my hairs to figure out what's going on with my Magento store (1.7.0.2 version). 80% url-keys are appended with strange numbers in two different forms. Some are like this http://www....
user avatar
6 votes
1 answer
4k views

Web Server (Apache) Rewrites on NGINX

I'm planning to use NGINX rather than Apache as my webserver on my next Magento project and am wondering about the Use Web Server (Apache) Rewrites on the Magento installer wizard? What exactly do ...
Holly's user avatar
  • 4,873
4 votes
1 answer
2k views

Determining product ID from URL in magento

Here is a sample url from my company's Magento site (and we're obviously using stores in the URL hence the smi000.. code) http://shop.mystore.com/smi130495/catalog/product/view/id/35830/s/men-s-...
Oliver Williams's user avatar
4 votes
2 answers
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. ...
nachito's user avatar
  • 703
2 votes
3 answers
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 ...
Steven Lynn's user avatar
2 votes
2 answers
1k views

How to get Product url and show in detail page even it is non visibility mode?

By default Magento does not allow the product which has 'not visibility in frontend' mode to avoid showing the product in listing and detail page. When user hit the previously loaded url, it redirects ...
mymotherland's user avatar
2 votes
4 answers
12k 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/...
Chris Philpot's user avatar
2 votes
1 answer
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 ...
user1799722's user avatar
2 votes
4 answers
5k views

htaccess Rewriterule to remove trailing slash

I ran a page seo and it said I needed to remove the trailing slash because it could cause duplicate content. So I found this rule: RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=...
Freejoy's user avatar
  • 819
2 votes
3 answers
6k 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 ...
MagExt's user avatar
  • 1,833
1 vote
2 answers
2k views

change the over all product url

I have a big doubt in forming url for products. Currently url is formed by using the name attribute. I want to change this to sku_id(attribute) of the products. For this where i need to change?
Rasheed's user avatar
  • 33
0 votes
1 answer
707 views

Mangeto url change slash to hyphen

i want change category and subcategory url level instead of slash change hyphen. please help me current url: books/books/philosophy.html want to change like books-books-philosophy.html
asvatth's user avatar
  • 11
0 votes
1 answer
1k views

Optimise URL when changing Store and language switcher to maintain SEO standards

I want to optimize the store view URL to maintain the SEO standards when switching the language view in Magento1.9 front end. Example localhost/magento/?___store=french&___from_store=german To ...
Krishna ijjada's user avatar
0 votes
2 answers
1k views

How can i remove index.php from magento url?

I have tried everything I found in the different post related to this. I already review: • The magento setting is correct. • That the rewrite module is enabled. • The rules and conditions in it ....
Waskalle's user avatar
0 votes
1 answer
462 views

URL's creating Duplicate Content best practices?

I am using the Community Edition and recently started working on Magento on a site that has been live for 3.5 years. I noticed that in Google Analytics, I am getting 2 different results on the CMS ...
Sean Scott's user avatar
16 votes
3 answers
19k views

Magento 2 : get rewrite product url

I am trying to get rewrite product url from the load product in custom module. I am getting url in http://localhost/m2/catalog/product/view/id/1401/category/23/ format . But I want http://localhost/...
Amit Maurya's user avatar
  • 2,871
7 votes
2 answers
7k views

What information is required in the ID path of a Magento URL Rewrite

Is it required to use the old URL in ID path? I thought that was just used for personal identification and you can fill in whatever you want?
Evelien's user avatar
  • 71
5 votes
5 answers
28k 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-...
Coen's user avatar
  • 511
5 votes
3 answers
3k views

Case Sensitive URL Rewrites

I wish to create a series of rewrites so that the following redirect occurs: Request: Category/ProductName.html Target: category/productname.html At present, visiting Category/ProductName.html ...
Dan Hanly's user avatar
  • 724
4 votes
2 answers
14k 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, ...
Rafael Corrêa Gomes's user avatar
3 votes
1 answer
919 views

"Unique constraint violation found" Error When Assign Product into Category

After Assign Product Into Category Getting Error Unique constraint violation found In exception.log file :- [2019-05-31 17:53:29] main.CRITICAL: Unique constraint violation found {"exception":"[...
Ronak Rathod's user avatar
  • 6,322
3 votes
7 answers
27k views

Magento 2 : Unique constraint violation found when adding product, categories or mega menu items

I have a Magento 2.2.3 installation and I have the theme SM-Maxshop on that. I am not able to add any products, categories or Megamenu items to it. I get an error "Unique constraint violation found" ...
Priyanka's user avatar
3 votes
1 answer
907 views

Redirect From one category to another

This is driving me insane :( I need to redirect from one category to another existing category in Magento 1.9 I've tried to add a rewrite in magento's module but of course get the error Request Path ...
Andy Ellis's user avatar
3 votes
3 answers
4k 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....
Pavil's user avatar
  • 61
3 votes
1 answer
2k 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'])...
Fabian Schmengler's user avatar
2 votes
0 answers
1k views

Magento2.2 sitemap genrate after some product url not showing properly

I have to used Magento2.2 and we are also install in our site this plugin olegkoval/magento2-regenerate-url-rewrites but we are truncate url_rewite table after run this command on our staging site ...
Rv Singh's user avatar
  • 1,617
2 votes
1 answer
627 views

URL Rewrites in 1.14 (EE) Don't Seem to be Created or Acted Upon for All Products

On my site, during the development process, products were created and imported using a variety of processes. Now I find that the URL rewrites are not uniform and don't seem to work in all cases. Some ...
gnicko's user avatar
  • 400
2 votes
2 answers
3k 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=...
Devidas's user avatar
  • 3,358
2 votes
2 answers
1k 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 ...
Trenox's user avatar
  • 397
1 vote
1 answer
1k views

Optimize catalog product url rewrite

Our store has more than 30K products and most of them are child product and not visible individually. How can I prevent to add new url rewrite for these products? I mentioned how can we manage url ...
mageUz's user avatar
  • 6,234
1 vote
1 answer
1k views

setBeforeAuthUrl and setAfterAuthUrl

I have rewritten the customer login function to immediately redirect the customer to a specific category. The overwritten login function looks like this: public function loginAction() { parent::...
Skytiger's user avatar
  • 511
1 vote
0 answers
1k views

Product Url Key not working rewrite and category say url key specified store already exists

The product url keys not working, sometimes they do suddenly it goes to the original url like: https://www.takoda.shop/nl/catalog/product/view/id/5/s/dog-tag-halsketting-messing/category/5/ and not ...
Alain Stout's user avatar
1 vote
1 answer
984 views

Redirect to specific controller from observer without changing my current browser Url

I had written a observer to trap product view page event and it is working fine.Now in that code i want to call a controller and pass the product id in it and render the custom view.phtml file, so how ...
RickyN73's user avatar
1 vote
1 answer
1k views

`core_url_rewrite` Table optimization [duplicate]

I think core_url_rewrite is built in the wrong way: why it contains records for not visible products ( all simple associated to the configurable for example ) why it contains records for every ...
Fra's user avatar
  • 6,965
1 vote
2 answers
2k views

Block access to system URLs through htaccess or some other way?

Is there a way to block access to the system URL's so a customer or bot would get a 404 or 403? I've done research into the rewrite rules and can't seem to find a way to mass rewrite the products' ...
Marshall Bishop's user avatar
1 vote
0 answers
44 views

404 and non SEO-friendly URLs in HTML docs despite having core_url_rewrite entries

About three months ago, I was migrating a Magento 1.9 app to a new server and truncated the core_url_rewrite table due to an error while indexing. Everything's been fine, though I recently found out ...
mhyousefi's user avatar
  • 111