Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
2
votes
4answers
10k 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 ...
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 ...
2
votes
4answers
17k views

Magento secure and unsecure url redirection issue

I am facing issue regarding redirection. My system has been already live.Google already cached all pages with https . In past my secure url and unsecured were both https://www.example.com. But now ...
2
votes
1answer
5k 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, ...
2
votes
3answers
671 views

How to resolve conflict when CMS page URL and controller rewrite URL are the same?

I have a page named stores and I have a following rewrite: <global> <rewrite> <designer_url> <from><![CDATA[#^/stores/#]]></from> ...
2
votes
1answer
334 views

Category url appending -1 out of the blue

As I know it, magento only ads a -1 when creating or editing a url that already exists, in order to not have duplicate urls. But this time magento ads a -1 to categories out of the blue, without ...
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 ...
2
votes
1answer
1k views

Why do special characters in search terms are processed as encoded characters (only on Production Server)?

This issue only happens once the site has been deployed to Production Server. On Development Environment works as expected. Using Magento 1.6.2.0 CE, Locale: español (Spanish) Search works just ...
2
votes
1answer
633 views

Magento 2 custom url rewrite ignores query string

I am migrating a store from an old custom commerce system to Magento 2. I am trying to add URL rewrites into Magento 2 using the Marketing -> Url Rewrite tool. The old URLs for the store look like ...
2
votes
1answer
1k views

core_url_rewrite table

When I change the position of products in a category, then the whole webshop will have database problems. When I debugged the problem, I saw that the table core_url_rewrite was the problem. This table ...
2
votes
2answers
3k views

Images 404-Not Found

I just installed a fresh copy of Magento 1.9.2.3. Now my issue is when I try to upload any image, be it product, category, transactional email, ect. it gives me the little broken image placeholder. ...
2
votes
1answer
2k views

Custom Controller Action Url Rewrite from config.xml Not working

I need to the rewrite custom controller action url, I have tried the below code in config.xmlwith the help of this and this. When I entered the url as http://www.website.com/orders instead of http://...
2
votes
1answer
97 views

Magento 404 Security Question

I have a Magento 404 question: This generic product url looks like this http://www.domain.com/some-magento-product.html But from a security standpoint. how would a request to something like this ...
2
votes
1answer
249 views

Magento no www. and a www. url

my magento website works only without www prefix, is there a way to access to my store with www prefix and without it at the same time? I have disabled url rewrite options. This is my .htaccess file:...
2
votes
2answers
2k views

Magento Enterprise Latest Edition Force Uppercase URL

We are a new Magento Enterprise customer and have found the latest version of Magento Enterprise we are running on automatically converts our uppercase URLs indexed by Google to lowercase URLs ...
2
votes
1answer
248 views

Getting Error Unique constraint violation found - When remove suffix .html in magento 2

I Am getting error when I am removing .html from Category URL Suffix. Error is Unique constraint violation found. Anyone have genuine solution for this. Thanks
2
votes
2answers
258 views

URL Rewrite Duplicates and Product URL

My headache begins with a common URL Rewrite issue. I am running Magento 2.3 and rely heavily on an extension called Firebear Import / Export to handle my suppliers CSV feed imports. Let's say in ...
2
votes
2answers
266 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
95 views

What is the meaning of the is_autogenerated field for category url_rewrites?

I am investigating an issue where a category has more than one url rewrites. It looks like this: mysql> select * from url_rewrite where entity_id = 8597 and entity_type = 'category'; +-------------...
2
votes
1answer
52 views

My website is being forward to another URL off the search engine links

When you type my website in the address bar you make your way to our website. But if you Google or Yahoo us and click on the link they provide as a search result you get forwarded to another URL that ...
2
votes
1answer
562 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 ...
2
votes
1answer
238 views

override magento url routing in my module

how can i override URL routing of magento2? there is a huge UTF8 problem on URLs magento2 don't recognize something like تست.html Anybody please help me on how can i override the routing in module ...
2
votes
2answers
3k views

Changes in root .htaccess file not reflecting in Magento 2

I am using Magento 2.1. I am trying to add a rewrite rule in .htaccess file for url's starting with index.php?route=. to be replaced with the query string. RewriteCond %{QUERY_STRING} ^index.php?...
2
votes
1answer
210 views

How can i bulk ADD URL Rewrite Management

How can i add bulk URL Rewrite Management, i need to migrate new website, but i have already promoted my old site products, so, after i change new site, old site url return blank page, or empty page. ...
2
votes
1answer
2k views

Bulk import and redirect 301 (over 14K url) in core_url_rewrite or on server

I have to redirect over 14K urls from another system to magento core_url_rewrite. What is the preferred method, to place these urls in database, or to redirect the ursl from .htaccess file ?
2
votes
1answer
59 views

Reducing time on Cron Jobs

The following is the output I get from running a full reindex via SSH: Product Attributes index was rebuilt successfully in 00:00:07 Product Prices index was rebuilt successfully in 00:00:05 Catalog ...
2
votes
2answers
905 views

Magento 2 > cannot login to admin area (php7) but php 5.6 gives Fatal error: Class 'Locale' not found in

I installed Magento 2.0.2, via installatron service (automated on Direct Admin), but I cannot access admin area. CSS/JS looks ok, but admin cannot login on php 7.0.6. When I switched to php 5.6 I'm ...
2
votes
1answer
79 views

How to execute url for 9:00PM to 6:00AM only?

I want to execute url automatic at night 9:00PM to 6:00AM. because I my cron job not working properly and I used AWS server with magento. so I want to create my custom cron in magento.
2
votes
1answer
529 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
812 views

Magento rewrite issue with multi-language store setup and storecodes

currently I use a multi-language store setup with Magento 1.7 on a single domain. The URLs looks like this: www.example.com/category/product.html www.example.com/kategorie/produkt.html For SEO ...
2
votes
1answer
136 views

How to redirect existing URL to new URL?

I want to redirect an existing URL to new URL. e.g. current URL - http://localhost/blog/stltoday/ new URL - http://localhost/press/stltoday/ I tried URL Rewrite Management. But it is not working. ...
2
votes
2answers
331 views

Redirecting to Non-SEO Friendly Url

I have upgraded my Magento store from EE 1.11 to EE 1.14 Problem After upgrade I have changed URL key for one category. Now on frontend it is showing me correct URL on mouse hover but when I am ...
2
votes
1answer
2k views

404 Errors when trying to access other subdirectories in root with magento serving as primary (Solved)

I have magento located in a subdirectory in public_html/magento the .htaccess I used to redirect magento to the root is based on installing Magento in subdirectory Root .htaccess file contains ...
2
votes
1answer
74 views

Magento catalog url rewrites undo

Is it possible to Undo Magento Catalog URL rewrite? By accident this happened and I was wondering if it´s possible to undo this and then have the old URLs back.
2
votes
1answer
451 views

Where are Magento URL rewrites stored?

I would like to restore my URL rewrites file to an earlier time before I made changes but I don't to do a full database restore if it's not necessary. Is there a certain file I can restore instead? ...
2
votes
1answer
3k views

product url changed every time reindexed

I have many products without url key specified. Use web server rewrites is turned on. Every time I re-index all, a product's url will change. Why? What's the correct way to configure url rewrites? I ...
2
votes
1answer
3k views

Strange .htaccess and base URL redirect happening

I have an odd scenario that I cannot figure out. When Auto-redirect to Base URL is set to 301 or 302, the homepage of my website redirects correctly to what I have defined as my base URL (I am using ...
2
votes
1answer
1k views

Product collection to get canonical product url By cron process

its really strange to get such kind of issue relate to get product correct url below is my collection to get product information $store = Mage::app()->getDefaultStoreView(); $...
2
votes
2answers
2k views

Best practice for multilingual categories and products?

I think it is very important question for setting up a multilingual store with Magento. The main problem here I am facing is URL rewriting for categories names for different language. I have this ...
2
votes
1answer
50 views

Url rewrites not matching URL key

this store is in Magento 2.3.0, and I'm running into an issue regarding url rewrites/keys. On the product, I've set the url key as example-key, but only example-key-extra-stuff works -- that being ...
2
votes
1answer
157 views

Magento Rewrite Multistore Code in URL

I have magento multistore website where store_code is placed after domain name like these below : http://example.com/code_first/ http://example.com/code_second/ so I want to rewrite store_code url ...
2
votes
1answer
47 views

why the magento is generating this custom redirects

why the magento is generating this custom redirects in URL Rewrite Management. Please find the below image: Thanks
2
votes
1answer
28 views

How would you set up a URL rewrite rule to handle 404s in Magento 2

I want to write a rewrite rule that is only activated if the url is a 404. Does anyone know how I would go about doing that?
2
votes
1answer
80 views

How to rewrite a folder path

I need to create a redirect that will redirect from https://www.example.com/es to https://www.example.com/mx for all pages on my site. How would I go about that. Can I do that in Magento admin section?...
2
votes
1answer
1k views

Why “Use Parent Category Path for Category URLs” option is not available in Magento 2? [closed]

We have a Seo Options to modify the URL visibility in Magento 1.x Reference : Go to the Magento Admin Panel -> System -> Configuration -> Catalog -> Seo Options. Select yes or no from "Use Parent ...
2
votes
1answer
625 views

url rewrite changing automatically, how to permanently fix this?

I have added links to my cms pages in menu bar(about-us, contact-us, gallery). And created url rewrite(type=custom) with url rewrite management option in magento admin panel. Its works fine. But ...
2
votes
1answer
172 views

Get access to images with 2 different URLs

I want ANY image in any folder in my magento website could be able to get accessed both with its actual file name OR a .MAIN extension at the end of the file. As an example, In case I have an image ...