Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
112
votes
13answers
74k 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 ...
31
votes
10answers
60k 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/...
4
votes
2answers
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 ...
6
votes
2answers
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 ...
2
votes
1answer
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 ...
27
votes
4answers
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 ...
3
votes
2answers
6k 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 ...
1
vote
1answer
197 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?
6
votes
2answers
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....
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/...
4
votes
1answer
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://...
27
votes
3answers
59k 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.
9
votes
2answers
2k 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....
7
votes
3answers
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....
2
votes
4answers
11k 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/...
7
votes
4answers
25k 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 ...
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 ...
0
votes
1answer
422 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 ...
6
votes
1answer
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 ...
4
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. ...
4
votes
1answer
1k 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-...
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 ...
2
votes
2answers
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 ...
1
vote
3answers
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=...
1
vote
2answers
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?
0
votes
1answer
601 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
0
votes
2answers
807 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 ....
0
votes
1answer
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 ...
16
votes
3answers
17k 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/...
3
votes
3answers
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....
6
votes
2answers
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?
5
votes
6answers
21k 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-...
1
vote
1answer
4k views

Unable to access magento without /index.php/ in the URL [duplicate]

I have fully downloaded a magento 1.9.1 instance and it's DB which was running on a server into my computer and trying to get it up and running using WAMP server. everything looks fine except that I ...
0
votes
1answer
3k views

Magento 2 custom module rewrite url

I have created a custom module for searching. I am using JQuery for post url like below var url = "/ymm?year="+year+"&make="+make+"&model="+model; jQuery(location).attr('href',url); my ...
0
votes
1answer
709 views

Magento 1 Rewrite Pagination url Parameter

for sure this question has been asked so many times in different ways, but i didn't find anything usefull for my case. We have an installation of Magento 1.9.3.6, the main task is to rewrite the ...
0
votes
0answers
738 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 ...
5
votes
3answers
2k 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 ...
3
votes
1answer
773 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 ...
3
votes
1answer
10k 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
1answer
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'])...
2
votes
1answer
610 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 ...
2
votes
4answers
20k 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" ...
2
votes
2answers
828 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 ...
1
vote
2answers
1k views

Too many URL Rewrites

As you can see in the attached image, foreach product in my store I have too many rewrite rules. I would like to have only one rule with the following syntax: mydomain.com/product-category/product-...
1
vote
0answers
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 ...
1
vote
0answers
31 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 ...
1
vote
2answers
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' ...
1
vote
1answer
928 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 ...
1
vote
1answer
169 views

Magento 2 URL Key field would generate a URL that already exists

I'm trying to move my Category Wincomm but I keep getting this message. I have 2 Store Views and I have changed the url using Marketing -> URL Rewrites but the message keeps returning. I've also ...