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.

0
votes
1answer
43 views

Blog post url rewrite [closed]

I'm using BlogMate extension for my magento site. This is my blog url http://mypage.com/blog But if I click on a post, it will access to http://mypage.com/post_slug Is there anyway to change the ...
2
votes
1answer
938 views

Magento 2: “Use Categories Path for Product URLs” configuration does not working correctly

I have a store with few categories. I want to have only one url for each product - domain.com/product_name.html. I don't want to have products URLs with the category path in them. I set “Use ...
1
vote
1answer
51 views

Url rewrites not working after upgrading Magento version

So I updated my site to 1.6 version of Magento and then I backtracked back to 1.5. My site has a bunch of Url rewrites but now they seem not to be working and will take me to an a cannot be found page....
0
votes
1answer
676 views

Magento 2 - URLs trailing slash redirection programmatically

I want to redirect automatically any url that comes as example.com/ to example.com or example.com/men/ to example.com/men Could someone point me to the right direction. I do not want to modify ...
3
votes
2answers
280 views

Magento 2: How to generate category url with underscore?

I am importing categories from external script. All working fine with import. But with URL KEY Magento is changing value automatically. And I want the url same as I am passing from script. 1) ...
1
vote
3answers
2k views

URL was already generated for an item with SKU. ERROR

I have problem when trying to import products via CSV i get this error: Url key: '******' was already generated for an item with the SKU:'*******'. You need to specify the unique URL key manually en ...
-1
votes
1answer
271 views

truncate core_url_rewrite by cron

Is it possible to truncate this table by cron? It seems to be necessary because in few days the table's weight increases to about 10GB.
1
vote
0answers
28 views

Hunting down a redirect / rewrite issue. How many rewrites should there be for a product?

For SEO value I understand that Magento will redirect system ID urls to pretty urls. I'm trying to find out if there is something wrong with my db. There are several system urls that have 5 different ...
1
vote
1answer
342 views

URL Rewrite not working as expected when product uploaded through magmi?

I tried, i) Stores-->Configuration-->Catalog-->Catalog-->SEO-->Use Categories Path for Product URLs to YES. ii) php bin/magento indexer:reindex I have again saved Categories but ...
0
votes
1answer
93 views

Clicking on a product on a category page just routes me back to the parent category

In my Magento 2 store whenever I click on a product in a category page I get routes to the parent category page instead of going to the product page. Is this a url rewrite issue? Duplicates?
1
vote
1answer
329 views

Layered Navigation: 404 Error when browsing via certain filter

We have an issue that occurs when filtering by layered navigation. It's 3rd party. The issue is (at least at our end) very easy to reproduce. Our catalog structure is pretty simple, having two major ...
1
vote
1answer
3k views

Magento 2 : Product URL rewrite issue

I have a Magento 2.1.10 store. I have imported all the products and categories. Now the product url is http://www.exaple.com/samplecategory/sampleproduct.html But I want the URL as http://www....
-1
votes
1answer
161 views

recovery for deleted composer.json and composer.lock

I mistakenly deleted composer.json and composer.lock from my Magento ecommerce site and now my site will not respond. How can i solve that please? I tried reinstalling but still the site will not ...
1
vote
1answer
1k views

Magento Static and Media url's redirect

So what i want to do is have domain.com as a main domain. static.domain.com (that uses the files of domain.com) as my static view url and media.domain.com (that also uses the files of domain.com) for ...
1
vote
1answer
32 views

How to get the type of page from url

Is there any methods to know which type of page i have with an url ? I would like to know with a page .html if it s a product page , a category page , cms page or home ? And i would like to know ...
0
votes
1answer
100 views

Magento 1.9.2.1 Product Upload Via .csv file does not generate url rewrites

I uploaded products via .csv file but the URLs does not get created/generated. I wonder if anyone can tell whether this is the expected behavior or there is a bug? Updated Question I have uploaded a ...
1
vote
1answer
24 views

I still have access to normal urls when rewrite urls is active

I have "URL Rewrite" active, and now I have access to URLs like "catalog/product/view/id/719/s/p-product1/" but I also have access to rewritten URL '/p-product1/' how can I disable the normal URLs?
3
votes
4answers
972 views

Magento2: How to modifiy http header of page?

I am trying to modify HTTP header for current URL. I want to set 410 status if current page header is 404. below code I used but I have created new controller so it always set 410 for that controller ...
0
votes
3answers
645 views

M2: How to redirect contact form page to CMS page

I tried to 301 redirect contact form page URL to custom cms page URL with Magento 2's rewrites, but it does not seem to redirect the URL for some reason. Is there some special trick to be done with ...
2
votes
1answer
139 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 ...
1
vote
0answers
211 views

404 Errors after turning on SEO URL and Secure URLs

Initial Setting: HTTP only SEO Url Turned off What was changed: Turned on SEO Url to remove index.php from Url Turned on SSL for Admin and Frontend. Issue: 404 Error messages Unable to login to ...
7
votes
1answer
761 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
0answers
20 views

Problem with multillanguage url rewrite

I have installed Magento 1.9.3 with sample data so I have category: Women clothing with url women.html for the eng view femmes.html for the fr view frau.html for the german view When I switch the ...
0
votes
1answer
141 views

Magento1.9 - How to rewrite exact url using xml

I want to rewrite /custom link from /catalogsearch/result/?q=some&attr=value for this I have added below code in my module config.xml ... <rewrite> <mymodule> <from>&...
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
1
vote
1answer
2k views

htaccess file on Magento director not working

I need to remove index.php from Magento website url. I have checked https://stackoverflow.com/questions/10474740/how-to-remove-index-php-from-urls. I have followed the same instruction and ...
0
votes
2answers
126 views

Magento v1.9.x ultimate module creator entity URL rewrite / key problem

Hi all ( especially Marius :) ) I have an annoying problem with my Mag 1.9.x modules created using the, otherwise great, ultimate module creator. When an item/entity is given a friendly URL and ...
0
votes
1answer
117 views

Magento 1.9 add a fixed product prefix

First of all, did quite some research, but could not find the best solution in this case. For SEO reasons, we need to add a fixed prefix (with a slash) to all product URLs. Product URLs now look ...
0
votes
1answer
103 views

Magento 1 URL rewrite Reindex takes forever and no data on core_url_rwrite table

We have a Magento 1.9.1 site with around 800k products. The core_url_rewrite table was truncated in order to get new url_rewrites after indexing. The problem is the url_rewrite reindex is taking for ...
3
votes
2answers
252 views

How to create wild card sub domain in Magento 1.9.x

I am coming with question of how to create a wildcard subdomain in Magento 1.9.x without using store view. I know creating more store view will cause the issues in price indexing, flat tables, etc., ...
0
votes
1answer
390 views

what RP means in Url Rewrite Management options column

I look at the Url Rewrite Management for custom URL rewrite and found that there are RP in option column. What is the difference between RP and non RP custom option?
1
vote
0answers
17 views

Magento 2: Custom url for state=onsale produtcs

Right now I'm able to see all my on sale products here: http://wwww.domain.com/products?state=onsales (products is a category that lists all products) I would like to change that url or create a ...
0
votes
1answer
51 views

Magento 1.9x occasionally displays unfriendly URLs

Magento will occasionally display unfriendly URLs even though SEF is enabled in the admin. At first glance, I believe this has something to do with indexing and the order we re-index and refresh ...
0
votes
1answer
298 views

Magento 1.9 - Why different Product URL for different Store

I have 1 website, 2 stores, and 1500 products. All products assigned to both stores. Why every product has different URL for each store? I tried to truncate core_url_rewrite table and re-index again....
1
vote
2answers
694 views

Magento 1.9 : How to change URL /customer/account/login to /kupac/nalog/prijava/

What is the easiest way to change the /customer/account/login/ URL to /kupac/nalog/prijava/ but to preserve the functionality too? I will also need to change /product/id/X to proizvod/X where X ...
0
votes
2answers
68 views

HTTPS 301 redirecting to http version

We have implemented https on our Magento store a few months back and everything seems fine exceptive noted that the server response for 301 redirects don't seem to be honoring the https:// ...
0
votes
1answer
367 views

Renameing categories didn't change URL Key and old names of categories still the same in product-catalog page

I renamed the categories name in admin panel. It is successfully changed after fixing a bug related to URL rewrites, then I faced another problem that URL Keys of each category map to the old ...
0
votes
2answers
741 views

Magento 1 get product or category id by url string

I have url string. I need to detect if url belongs to product or category and get product or category id. I tried this, but it won't work: $vPath = 'http://dev.magento186.com/default/example/...
0
votes
2answers
44 views

Error when I try to change Catalog Name

When I try to Change the category name from "Product Catalog" to "Products" it gives me this error "URL key for specified store already exists."
0
votes
2answers
292 views

Get product Url in custom module Observer.php file Magento 1.9 [duplicate]

In custom module Observer.php i am trying to get Product url On view.phtml it gives correct working path like http://websitename.com/brave-gentleman-new-york-belt.html But same code in Observer.php ...
1
vote
0answers
261 views

Magento 2.1: Modifying root .htaccess for URL rewrite rules

Attempting to add some rewrite rules to the root .htaccess for my Magento 2 installation, but additions to that file are not reflecting. What I want to achieve is to create two rewrite rules. One for ...
0
votes
1answer
61 views

How to prevent automatic url- rewiting in Magento 1.9.0.1?

I am having problem while url-rewriting, I am creating custom url-rewrite in which Requested path is products/kitchen-cleaner/screen-wipes Target path is screen-wipes but it automatically ...
0
votes
1answer
98 views

Best practice for fixing multiple URL's for same product issue in Magento1?

This Magento1 website has 5 different URL's for each product that are indexing in Google. Examples below: www.url.com/category1/product-name.html www.url.com/brands/product-name.html www.url.com/...
0
votes
3answers
425 views

Change search query to lower case in catalog search results URL

I'd like to change the case of my query String so that the results page contains the lower case version thereof, for example: For a search Delicious Pie, instead of the results page being: ...
0
votes
2answers
457 views

Different category URLs for store views, redirect to proper one

I would like to have different URL keys for a category for every store view. ex http://store.com/electronics.html for EN store http://store.com/electronics-gr.html for a GR view. When i switch ...
0
votes
1answer
157 views

Magento 1: How to prevents Bots which are crawling internal URL's?

Daily we get in our webservers logs hundreds of thousands of lines from bots who are visiting these paths: /catalog/category/view/id/$1 /catalog/product/view/id/$i where i is between 1 to 54000 As ...
1
vote
0answers
263 views

Magento 1: Move Domains to subfolder

I have a multi-store setup with the german domain running on .de and the english on .com. Now I need to move them both together to the .com domain utilizing the store codes in the urls. www.example....
0
votes
1answer
582 views

Create Permanent Redirect for old URL does not seem to work

Magento 1.9.1 Porto theme I have the "Create Permanent Redirect for old URL" checked but Google found 922 Site not found Crawl Errors (they come up with "404 You might want to check that URL again or ...
0
votes
0answers
123 views

Configurable product Url Not changing in magento 2

I'm trying to change the URL of my configurable products I have changed the URL through Product->search engine->urlkey But it's not getting effect on the product still loading from old URL
0
votes
1answer
449 views

Magento 2: How to assign a category to CMS page?

How to redirect a category page to CMS page in Magento 2? I have tried several methods by using URL-rewrite but these methods work only on Magento 1.