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.

100
votes
13answers
65k 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 ...
4
votes
2answers
2k 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 ...
26
votes
4answers
16k 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 ...
1
vote
1answer
139 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
2k 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://...
-1
votes
0answers
738 views

The new url key is not working for product page

I am trying to change "URL Key" for the product. When I edit "URL Key" on product edit page, URL key gets changed correctly ... but the "request_path" in database is not updated for that key. I have ...
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 ...
26
votes
3answers
52k 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.
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....
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/...
7
votes
2answers
12k 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....
18
votes
10answers
27k 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/...
7
votes
1answer
721 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....
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 ...
0
votes
1answer
365 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 ...
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-...
4
votes
1answer
3k 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 ...
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. ...
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
992 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 ...
2
votes
3answers
4k 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 ...
1
vote
2answers
1k 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?
1
vote
3answers
3k 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=...
0
votes
1answer
440 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
216 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 ....
15
votes
3answers
12k 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/...
6
votes
2answers
6k 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?
1
vote
1answer
3k 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
323 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 ...
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
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'])...
2
votes
2answers
126 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 ...
2
votes
1answer
467 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
1answer
488 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 ...
1
vote
1answer
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 ...
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
1answer
2k views

How to change product URL and redirect?

Here's the situation I need to redirect one of my product to homepage make it as homepage at the same time the URL must be changed to home, so instead of www.example.com/sample-product it should be ...
1
vote
1answer
893 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 ...
1
vote
1answer
741 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::...
1
vote
1answer
713 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
2answers
738 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
3k 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, ...
1
vote
2answers
927 views

Redirect/rewrite home page domain.com to store view domain.com/en/

I have enabled Add Store Code to Urls to access the different store views of my Magento website, but now www.domain.com and www.domain.com/en/ have the same content. To avoid duplicate content I would ...
1
vote
2answers
994 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
1answer
900 views

Adding multiple rewrites to config.xml

I'm trying to add a few url rewrites into the config.xml file in the "app/etc/" folder. I am not using the url rewrite function in magento itself because in need to be able to use regex. I tried the ...
0
votes
1answer
822 views

category/ url key not accept language other than english?

i want to input some chinese url key for seo optimization in my region, but when i input some chinese character, the category and product was saved nothing. Any solution?