Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
105
votes
13answers
67k 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 ...
27
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 ...
27
votes
3answers
53k 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.
19
votes
10answers
31k 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/...
14
votes
3answers
13k 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/...
13
votes
1answer
949 views

Product URL with additional parameters (CE 1.8 & EE 1.13)

In short: Retrieving a product URL with additional params doesn't work in CE 1.8 & EE 1.13. URLs have changed with the latest version of Magento. Previously in CE 1.7 and EE 1.12 calling $this-&...
8
votes
2answers
804 views

Weird non system rows being added to core_url_rewrite

Our core_url_rewrite table seems to be growing excessively (21M rows currently) - I know there have been other questions about this, but none of them seem to mention this particular oddity: a lot of ...
8
votes
1answer
298 views

Magento 2 url_rewrite table contains “az-categories/” prepended to URLs for all of our stores

We have a multi-store Magento 2.1.4 installation, with 3 stores, and in recent weeks we've noticed that our category URLs will some times include one of our store code's prepended with "-categories/" ...
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....
7
votes
1answer
875 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
1k views

magento url rewrite prevent -1 or -2

I have a category created which contains url key as - "sofa" and url generated is "sofa.html". URL rewrites system record generated as follows : ID Path : category/5 Request path : sofa.html Target ...
7
votes
1answer
1k views

Magento2: Remove Store Code URL only for default store

I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like: http://mystore....
6
votes
4answers
14k views

How do you generate URL rewrites in Magento 2

Is there a way to force Magento 2 to redo all of the product/category urls? The majority of the site is fine with urls such as category-name/product.html but a few categories refuse to conform to the ...
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?
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....
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 ...
6
votes
2answers
315 views

Catalog URL Rewrites not working for “Duplicated” products

Facing a strange issue: Whenever client "duplicates" a product from Admin, then the URL Rewrite of the new product doesn't get updated in the Rewrites table, even if client gives a different URL-Key ...
6
votes
2answers
7k views

URL Rewrite: From category to CMS Page

I've created a CMS Page. URL Key = about/page1. I've created some Categories. One of them, category #1, it's called about. URL Key = about and its first subcategory, category #2, is named Page ...
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 ...
5
votes
2answers
9k views

Best way to remove index.php from URLs [duplicate]

What is the best way to remove index.php from URLs, without making too many modifications to the Magento core structure and native behavior?
5
votes
2answers
15k views

Understanding Catalog URL Rewrite Indexer [duplicate]

I've truncated the core_url_rewrite table with about 5000000 records. After that I run the Catalog URL Rewrite Indexer which created 1782612 records. Then I run it again and the table had 2251930 ...
5
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 ...
5
votes
1answer
2k views

Magento rewrite category/product URLs leading to 404 page

I have many category and product URLs coming from google which gives 404 errors. The reason is google has indexed most of the pages without .html (from old site) while now I have all the pages with ....
5
votes
1answer
763 views

Catalog URL indexer weird behaviour

The catalog URL rewrite indexers do not work correctly for some reasons. I realised something was wrong when, with FPC on (or Varnish), a wrong category (or no category at all) were set on the product ...
5
votes
1answer
441 views

Product url displaying category-ID and product-ID

Few Product urls are displaying with category and product id but few products are working fine. I want to keep all URL like: http://localhost/magento2/test-product not like below http://localhost/...
5
votes
1answer
2k views

what is the factory for url rewrites?

If you want to create url rewrites programmatically what factory should you use? Tried a few of them but none have the right methods (like setStoreId, save, setTargetPath and setRequestPath): ...
5
votes
1answer
3k views

Prevent automatic URL rewrites created that include category URL key in product URL

Whenever I create a new product, Magento automatically creates unnecessary URL rewrites that include each category and subcategory combination, that use the categories' URL keys in the product path. ...
5
votes
1answer
97 views

Friendlier URL for admin pages?

I'm trying to determine how to remove index.php from the Admin page URLs. I already know how to do it for SEO on public facing pages as is documented here. And "Use Web Server Rewrites" is already ...
5
votes
0answers
3k views

Magento 2 with nginx throwing 404 error on setup

Can you please help me to solve the same problem.? I'm trying the magento 2 with nginx on my local environment. I'm getting a problem when trying to call my project for installation htttp://...
5
votes
0answers
155 views

Multistore with subfolders - Including language code before store group in URL

I have a client who needs to include a language code before the store group in the URL. For example, the current setup is: example.com/store1 example.com/store2 There are two subfolders in the root ...
4
votes
5answers
57k views

Getting 404 Not Found Error on every page except index.php [closed]

Because of some reason my site stopped working. After that I have uploaded the backup which I had created earlier. I am getting a "404 Not Found Error The resource requested could not be found on ...
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
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://...
4
votes
2answers
282 views

How to block cpanel link of my magento site

I had created an ecommerce website named http://example.com. I want to block my cpanel link for users who are accessing my website. Link is example.com/cpanel. If any I.T. specialist user or general ...
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 ...
4
votes
1answer
1k views

Magento 2 {{store url=“tipps”}} trailing slash and redirect

If I add a link in WYSIWYG-Editor like {{store url="tipps"}}. Magento 2 makes link to http://www.domain.at/tipps/. But, after clicking on the link http://www.domain.at/tipps/ Magento is redirecting to ...
4
votes
3answers
2k views

How to import Enterprise URL Rewrites in 1.13?

We recently migrated from a proprietary shopping cart to Magento Enterprise. Currently we are using a custom module to redirect the old product URL's to the new Magento product URL's. However, I am ...
4
votes
1answer
3k views

Lock wait timeout exceeded

Quite often we get the following error in Magento when we try to make a change to one of our Categories. SQLSTATE[HY000] [1205] Lock wait timeout exceeded; try restarting transaction, query was: ...
4
votes
4answers
4k views

Magento 2 change urlkey and set custom product urlkey

I want to change my Magento 2 product urlkey and set something like example.com/product-name/product-id instead of example.com/product-name.html. Where do I have to change it while saving product ...
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
580 views

How to add arguments in magento category URL

I want to add my custom arguments on categroy url. For example I have 3 custom filters (links) on the category page (red, green, yellow) and the category page url is like: localhost/test/sale/...
4
votes
3answers
2k views

Out of sync enterprise_url_rewrite

What triggers inserts/updates on the enterprise_url_rewrite table in EE 1.13? We have a very large catalog (about 700,000 products) and about 500,000 of those do not have corresponding ...
4
votes
1answer
743 views

How could I get the attribute(brand) Url Like example.com/category/brand/name in magento2

Please give me some Idea,I need some help. I fetch the brands from those attribute..and get the ids from those attribute. Ans can send those data on the URL like example.com/category?brand=7 but I ...
4
votes
1answer
385 views

product list not showing on server , but working localhost magento 1.9.2

i am using code : {{block type="catalog/product_list" name="home.catalog.product.list" category_id="4" template="catalog/product/list_home.phtml"}} this code file list_home.phtml: <?php $...
4
votes
1answer
3k views

https to http change url through .htaccess in magento sites except checkout or my account page

All my pages are indexed with https: URL in Google because in the past my my secure base URL and unsecure base URL both were https://www.example.com Now my secure base URL is https://www.example.com ...
4
votes
1answer
1k views

Changing Product/Category URL_KEY doesn't create a 301 redirect ( EE 1.13)

I'm on EE 1.13.10 and I noticed that changing URL key for a product/category doesn't create a redirect from the previous URL to the new one, instead both URL still works. Any hint on out to debug/...
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
80 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
885 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
292 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/...