Questions tagged [url-rewrite]

Denotes questions about URL Rewrites Management.

1
vote
2answers
107 views

Magento 1: recommended way of preserving SEO during non-Magento migration

So here's the idea, one of our clients has got a Prestashop website and would like to migrate to Magento. The migration is no big deal as we have made several migrations before. However, I'm ...
1
vote
2answers
2k views

Slash as category URL suffix gives 404 error on all category pages

We are developing a new Magento 2 website for a client who is currently using a Magento 1 website. All their category URLs end with a forward slash ("/"), but this doesn't work in Magento 2. In ...
1
vote
1answer
2k views

Multi-Store with multi-domain and sub-directory Setup - Symlinks

We have a multistore setup correctly, however I need to assign correct urls via symlinks. Default Store: example.co.uk Language Page: example.com USA Store: example.com/us/ Under the root .htaccess ...
1
vote
3answers
421 views

Missing Images with correct url and permissions

Tried adding images to a header block, it worked the first time but the images had different widths. So I opened them up in photoshop edited the widths, uploaded them back to file server with same ...
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=...
1
vote
2answers
535 views

How to add correct hreflang for google like “en-gb” instead of “en_GB”

I have multiple store site in magento. i wanted to add hreflang for my stores and thanks to one of the post here i have managed to do so. the code i wrote in my app / design / frontend / mytheme / ...
1
vote
2answers
1k views

Htaccess - How can i make this redirect a 301 instead of 302?

My website redirects everything from http to https but 1 of the redirects is a none cacheable 302 redirect according to a few seo checkers i use. How can i get the following code to be a 301 redirect ...
1
vote
1answer
204 views

Which attribute holds the product URL?

I have a Magento store (version 1.8.1) and I installed an extension to export the Google product feed. I noticed that the URLs in the generated feed are redirecting so I did some checks and found that ...
1
vote
3answers
1k views

Redirect url magento 1.9

I did a migration between Oscommerce and magento and now, to not lose our work with SEO I want to redirect the olds Url to the news Urls in magento, how can I do that?
1
vote
3answers
956 views

Change category urls for one category

For design purposes we have a sub-category called Brands which list all the brands. However we would like the urls to ignoer /brands/ part so domain.com/brands/brand_name would be domain/brand_name ...
1
vote
2answers
84 views

Is there a native way to redirect a user to a page including a status code within an event observer?

I need to redirect a user to another page with a status code of 503 within an event observer. While I am able to redirect the user with Mage::app()->getFrontController()->getResponse()->...
1
vote
2answers
541 views

how to change where public ip redirects

I am new to Magento and I am trying to change the address where my public ip directs, but honestly do not quite know how to do it. So if anyone could lend a hand it would be much appreciated. I have ...
1
vote
2answers
2k views

Remove index.php from www.domain.com/abc/index.php/xyz

What's happening: domain.com/abc/index.php/xyz gets redirected to www.domain.com/abc/index.php/xyz I'd like: domain.com/abc/index.php/xyz gets redirected to www.domain.com/abc/xyz In the document ...
1
vote
1answer
56 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'; +-------------...
1
vote
1answer
345 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 ...
1
vote
2answers
67 views

Why Magento automatically changes product URL?

This has been going on for quite a while but I haven't had any solid proof until now. Please search Google.com for "Princess Ivory Lace Tulle V Back Wedding Flower Girl Dress with Big Bow" and open ...
1
vote
2answers
681 views

How to rewrite Magento 2 default contact page url

How can I change Magento 2 contacts page URL from /contacts to contact-us.html?
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 ...
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
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
608 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
vote
1answer
2k views

How can I regenerate URL Rewrites in Magento 2 Store

While moving categories using the drag and drop feature in the Magento backend I somehow managed to corrupt my rewrites. The content in my url_rewrite table varies greatly from what it should be. It ...
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
2answers
509 views

Custom module url rewrite

I've a module to create Brands. So when see a brand detail I get an url like http://magento2.lan/brand/view/index/id/1/ And I would like the url looks http://magento2.lan/brand/view/brandName I ...
1
vote
1answer
1k views

Change magento url structure for better Google index

I have website with url structure like below http://example.com/appliances.html/?cat=12 http://example.com/appliances.html/?cat=12&mfg=123 Where cat id and manufacturer id are inner categories ...
1
vote
2answers
64 views

Multiple URLs found for index page (solved)

Actually, there is no index.php in urls of our website but the home page only. So to solve the "Multiple URLs found for index page" seo issue, with below changes in nginx configuration I could remove ...
1
vote
1answer
751 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
368 views

enterprise_url_rewrite table - what does column “inc” save?

I'm wondering what does "inc" means? In my particular case all rewrites do have set inc=1. mysql> describe enterprise_url_rewrite; +----------------+----------------------+------+-----+---------+--...
1
vote
1answer
37 views

how can i change all urls of old website

i just remove my website from hmsaver.com to homemarket.ae now every thing is working but i want to ask is that possible if any visitor came from google to hmsaver.com and he redirect with same url to ...
1
vote
2answers
111 views

How to redirect the URL?

For SEO, I need to change few URLs like below: My magento site has the same content on these URL's: URL 1: www.example.com/some-product-page/ URL 2: www.example.com/category/subcategory/some-...
1
vote
1answer
552 views

Exclude specific frontend URL from https://

I have a Magento website and have enabled https:// across the whole site by configuring the unsecure Base URL. The site also uses the following API URL which CANNOT be https, but because of the config ...
1
vote
2answers
751 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
1k views

Automatically switch store from category/view and product/view

Magento site with multiple store setup, different root category for each store, yet all products are visible from anywhere within the same website. Product url rewrites are enabled. Say I'm browing a ...
1
vote
1answer
3k views

Magento URL Redirect from One product to Another product

After reading about Magento URLs redirect, I thought it would be simple and straight forward. When its time for an action, I faced nothing but disappointment. What do I need : I want to create a URL ...
1
vote
1answer
680 views

The buy now button goes directly to the cart and it should go to the product page first

I don't have a whole lot of information on why this is happening and so this is going to be a fairly straight forward question. I have 8 products and they all direct to the product page except one. ...
1
vote
1answer
312 views

core_url_rewrite doesn't get written during indexing [closed]

Tired and extremely sleepy after 2 days of trying to find a solution, here I am on magento form requesting help and support. Problem: I truncated core_url_rewrite table and then tried to index. ...
1
vote
1answer
2k views

How to rewrite url in magento for custom module

I created a custom module in magento ... my url is seller/seller/sellercreate i need to rewrite this url like http://example.com/seller my config.xml is <?xml version="1.0" encoding="UTF-8"...
1
vote
2answers
2k views

URL Core Rewrite - more than one rewrite for one product

I would like to add more rewrites for a specific product. For example I have Product a - url: urlpath/product-original-path.html I would like three rewerites urlpath/product-old-path1.html urlpath/...
1
vote
2answers
945 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
1answer
733 views

How do I add custom URL parameters to magento?

I want to be able to list out all the products by a specific manufacture. I've been able to get a list of all the manufactures function getAllManu() { $product = Mage::getModel('catalog/...
1
vote
1answer
621 views

Creating url rewrite for old url

As part of product data migration from one store to another i need to change url keys on some of the products. Entire process is being done in shell script. So imagine i used to have product with ...
1
vote
3answers
64 views

Using mage for the friendly category url

Just started learning how to use the Mage for retrieving info from the database for a Google base feed. I have been calling the tables directly but I am not able to figure out how to get the "...
1
vote
1answer
1k views

Magento Product Url Rewrite issues

I have a magento site.i following issue with the product url. - I have product A with url key as 'a'. - I have product B with url key as 'b'. When i hit www.mysite.com/a it will redirect to www....
1
vote
1answer
53 views

How to remove .php from url using htacces [duplicate]

I want to remove index.php from my url, please give me solution over this.
1
vote
1answer
4k views

NginX .conf rewrite to remove trailing slash

We are trying to remove the trailing slash from our URLs (primarily so that duplicate content is not being served). I know there are many tutorials about how to do this, and I have succeeded in ...
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
2answers
46 views

How to modify the custom module URL?

I have created custom module i.e /stores/index/display. But I want to modify the /stores, How can I do that?
1
vote
1answer
36 views

Rewrite product page URLs based on that product assigned attribute URLs in Magento 2.3

I want to achieve product URLs based on product attribute for product page only. I have product attribute manufacturer, having drop downs such as lg, samsung, motorola etc. My store category ...
1
vote
1answer
328 views

url rewrite with wildcard possible with magento 2.x default set-up?

I want to use wildcards for url redirects in Magento 2.x with basic Magento set-up. Whenever I add it, either via Import upload or manually added they do not work. Does anyone know if adding wildcards ...
1
vote
2answers
223 views

How to remove url /contact/index in contact page in Magento 2

When we entering contact form in footer from any page it redirect only - /contact/index/ Any options such that we can submit form in footer section not redirect /contact/index After submit form it ...