Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

Filter by
Sorted by
Tagged with
3
votes
4answers
1k 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
727 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
172 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
239 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
1k 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
21 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
199 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
49 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
3k 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
132 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
172 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
147 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 ...
4
votes
2answers
289 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
501 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
18 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
54 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
345 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
833 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
74 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
482 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
874 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
46 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
378 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
317 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
75 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
167 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
511 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
551 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
205 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
290 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
699 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
138 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
1
vote
1answer
512 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.
3
votes
0answers
297 views

Magento 2 custom module friendly URL's

I have my url structured like so: "http://domain.com/post" where post is my module's main router url. Then for each post I have: http://domain.com/post/category/view/id/1. and my url rewrite is ...
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 ...
0
votes
1answer
2k 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 ...
3
votes
1answer
6k 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, ...
0
votes
1answer
41 views

Something is modifying .httaccess

There is a strange problem, about 2 times a day in our .htacess file the RewriteEngine line is changed fron on to off Options +FollowSymLinks RewriteEngine off We have checked everything, there is ...
0
votes
1answer
51 views

magento product link goes blank after searching product

I am using Luxury theme and I am getting issue regarding search. See my video about the error: https://www.screencast.com/t/sCcPQFeC Whenever we search the product by name and click on product ...
0
votes
1answer
118 views

Currency switch rewrite does not preserve querystring

Magento version 1.9.4 We are using Magento currency switcher URLs, and we need to add some query string at end, but when it resolves the rewrite, the querystring is gone. Ex: https://www.website....
1
vote
1answer
1k views

Use category path for product url in magento 1.9.3

i want to use category path with my product url. e.g https://domain.com/product-url.html to https://domain.com/catA/sub-cat/sub-sub-cat/product-url.html thanks
1
vote
1answer
3k 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 ...
2
votes
1answer
613 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
74 views

Magento 1.14 different websites / stores can't share a product url?

I'm in the process of an upgrade from 1.12 to 1.14 - I did an upgrade to 1.13 in between but read about a lot of issues with redirects. I have got the site up to 1.14 without anything seemingly ...
5
votes
1answer
537 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/...
1
vote
1answer
43 views

Can you define a custom target_path for specific products

I have a unique situation being thrown at me here. I have a product which in every way is a standard Magento catalog product. Has an entity id, sku, attributes the whole works. None of this can ...
1
vote
0answers
2k views

Something went wrong while saving the category Magento 2

There are many threads with almost the same title, but i could not find a solution for it I have a following structure in magento 2 for categories Among them i can save all the categories apart ...
0
votes
2answers
487 views

Custom URL Rewrite If a condition is met

I'm looking for a way to change URLs if a condition is met. Something like: URL: http://mysiteurl/ $url = 'http://mysiteurl/'; if ($userGroup == 'ABC') { $url .= 'user/ABC/'; } The new URL ...
1
vote
2answers
1k views

Magento 2 URL Redirect (301) not working

I am trying to redirect account creation to account sign in. I create customer accounts in admin panel instead. However attempting to redirect using Magento's URL Rewrite module is not working for ...
1
vote
1answer
716 views

Product Url As catalog/product/view/_ignore_category/1/id/

Recent day , when i am uploading any product in bulk, its url is generated as catalog/product/view/_ignore_category/1/id/..... 1. Search enginer optimisation is set as below Use Canonical Link Meta ...

1 3 4 5 6 7 15