Questions tagged [redirect]

Questions about HTTP redirects (status codes 301, 302, 303): How to set them up, why they are happening etc. For the catalog URL rewrite management in the admin panel, use the "url-rewrite" tag.

Filter by
Sorted by
Tagged with
0
votes
4answers
1k views

How to remove trailing slash from Magento 2 url

I have installed ssl in my Magento 2 store and configured base url to the https version. But when accessing http version, Magento redirecting url with appending trailing slash. For example: My ...
0
votes
0answers
18 views

Magento 2.2.6 Product Pages Not Opening after upgrade

The product detail pages on my site are no longer opening after upgrading from magento 2.2 to 2.2.6 There are no error rather a catalog search results page is loading instead http://mydomain.co.uk/...
22
votes
7answers
35k views

Redirect all http:// request to https://

Earlier i have posted this question : https://stackoverflow.com/questions/36104047/how-to-redirect-all-http-requests-to-https-on-magento but didn't get any reaction. Here is my site URL : www.trendy-...
1
vote
1answer
1k views

Magento 1.9.1 - Unable to edit (click) URL Rewrite fields in backend

I'm trying to edit (or redirect) some category menus to other categories. Example, I have two sub-categories called "Compression Wear" (id 60 - /compression-wear.html) AND "Compression Wear" (id 67 - /...
0
votes
1answer
18 views

Incorrect redirect on homepage load

On a fresh Magento 2 Open Source install, I accidentally named the site "foo.locale" instead of "foo.local". I've updated the database with the correct value [1] but when accessing the homepage foo....
3
votes
2answers
539 views

Magento: Delete products and 301 redirect to relevant it's parent category

Anyone have a solution for 301 permanent redirects for deleted products in Magento? I have a store with 5000 products. 4000 have been sold and will never be back in stock. I want to delete those ...
1
vote
1answer
30 views

How to redirect on checkout page, after add to cart click on bundle product?

I need to integrate small stuff. When I will click add to cart ( bundle product ) then only product added successfully in cart page and then redirect into the checkout page. So please let me help. ...
1
vote
2answers
44 views

“ERR_TOO_MANY_REDIRECTS” when turn on Cloudflare CDN possible .htaccess file issue

When I tried to turn on Cloudflare CDN, my site will get "ERR_TOO_MANY_REDIRECTS" error page (the site loads fine if I don't turn on Cloudflare CDN). I checked with the hosting provider, seems like ...
3
votes
1answer
43 views

Product to category redirect

Is there a way to link/redirect a product page to a category? Scenario: I have 70-80 new products that all go into the same category. I can either chose to put one of the products in the "News" ...
0
votes
1answer
26 views

Magento 2 redirects url to https but not admin panel

I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs, for port 443 or https I have an url like this: https://...
1
vote
2answers
2k views

Magento 2 - redirect to final checkout page (checkout success/failed)

I have a custom payment module. When the user select this payment method at checkout, he is redirected to custom module controller, which redirects him to payment gateway. Then he fills his credit ...
1
vote
2answers
2k views
0
votes
0answers
12 views

How to redirect to visitor browser language

How to get my shop in 7 languages: https://takoda.online/backup Redirect to visitor browser language? I have done all the different explainations on the net, but not 1 is working. Thanks You!
0
votes
0answers
21 views

M2.2.4 - Caching Issue Affecting Customers

We are experiencing an issue where our website for whatever reason will run into cache issues, to where the customers will get into situations like trying to go to Checkout, but instead of going to ...
0
votes
2answers
21 views

Magento 2: How redirect from controller to another controller to POST method?

I am trying to redirect the customer when their store view is not correct. When I redirect the _request method it is GET and I need it to be POST if ($currentStore !== $customerStore) { $...
1
vote
1answer
1k views

How to prevent duplicate content issues caused by index.php in urls?

I've been trying to prevent our homepage from displaying as both www.domain.co.uk & www.domain.co.uk/index.php but now i've realised that every other page displays with /index.php in the url. ...
12
votes
7answers
34k views

Redirect controller in magento 2

I added a new custom tab in customer dashboard. If my custom form is successfully executed i need to redirect to customer main page customer/account. How can I do this?
3
votes
2answers
1k views

Redirect customer login/register success to checkout Magento 2.2

I am creating a module for redirect login/register success to checkout if customer has some items on quote but that's not working. If I stop the event with that die; on Observer/Redirect.php above ...
1
vote
3answers
702 views

Need to create a separate mobile homepage. Does anyone know how?

I have Magento 2 store and I like the desktop theme but I do not like the mobile look of my homepage. How can I edit the mobile look of my homepage without altering the desktop version? At the moment ...
0
votes
0answers
14 views

Switch Store View on Login

I have created a custom module that observes the Login button so that when it is clicked I can switch the store view to a different store view. So far, this appears to be mostly working. However, upon ...
4
votes
2answers
2k views

How to send post data with redirect from magento 2 for a payment gateway?

we use magento2/app/code/Paymentgateway/Example/Controller/Standard/Redirect.php public function execute() { $order = $this->getOrder(); if ($order->getBillingAddress()) { $...
0
votes
1answer
30 views

Magento 2.2: How to redirect to category page?

I am trying to return a resultRedirect with the category URL but it always redirects me to the current page. What is the correct way to do it? $category = $this->categoryRepository->get($...
0
votes
0answers
19 views

Magento 2.2: Redirect to category page after add to cart

I am trying to redirect to the product category page, the process enters through the getCategoryUrl function but has never just redirected to the category. I have tried many functions and none is ...
0
votes
0answers
10 views

Infinite loop search page

While accessing the search url (http://localhost/mage2/catalogsearch/result/ or http://localhost/mage2/catalogsearch/result/index) infinite loop. Is it possible redirect to home page? Thanks.
0
votes
1answer
1k views

Form submit on same page

I want to submit my form on the same page : <form action="<?php echo Mage::helper('checkout/cart')->getAddUrl(Mage::registry('current_product')); ?>" method="post" id="...
0
votes
0answers
18 views

Magento 2.3 : backoffice wrong redirect to bad url index.php/admin/http://

Sometimes, in the back office, I get a completely wrong redirection. example: http://index.php/admin/http:/index/index/index.php/admin/admin/index/index/key/...
0
votes
0answers
15 views

Magento 2 some urls redirected to specific store view

I have 2 websites and three store views set up in my mangento 2 : domain.nl domain.be domain.be/fr/ I dont know for some reason, some urls in front-end and back-end get redirected to domain.be/fr/. ...
3
votes
1answer
1k views

Modifying the redirect after editing a product in the cart

I have a problem modifying a redirect in magento CE 1.9.2. Let's say a customer has a configurable product in the cart, and would like to edit that product (ie. changing color or size or something). ...
0
votes
1answer
45 views

How to change or redirect home page to customer login?

Need to see customer account at the first before home page. used redirect from the admin panel but not working. Still, when I load my site it goes to the home page. Mean that see customer account ...
0
votes
3answers
4k views

ERR_TOO_MANY_REDIRECTS error when setting up HTTPS

I have a simple website running Magento CE 1.9 on a single Linux/Apache server. The website works ok with HTTP but I am having a lot of issues trying to get HTTPS working. After setting the Unsecure ...
0
votes
0answers
17 views

Magento 2 - Website will get in cache loops and redirect to homepage (only at random times)

Our website runs into situations where it is working fine for days, but then customers will occasionally get into a situation where they are say trying to goto checkout, and instead of heading there, ...
0
votes
2answers
2k views

Magento 2 change store view

I'm trying this script to detect browser language and redirect to Italian store view if the language is Italian or English store view if the language is not Italian. The country code is correctly ...
1
vote
2answers
85 views

Magento 2 - How to Redirect Customer for Checkout After Login when cart is not empty

How to redirect customers to the checkout page after login when the cart is not empty for the customer? Loginpost\Redirect\etc\frontend\di.xml <?xml version="1.0"?> <config xmlns:xsi="http:...
1
vote
3answers
2k views

Magento 2 : Redirect on cart page after login

I want to redirect the customer to cart page after login from anywhere ex.login from checkout page or customer account login. Anyone know how to do this? Please help me.
0
votes
0answers
18 views

Magento 1: Redirect loop on product page, only in english version

I have a problem with magento 1. When I try to access product page I get error with redirect loop. Funny thing is that I get this error only in english version of my store and only on server. On local ...
1
vote
1answer
831 views

Magento2 redirect to Product Details Page on add to cart

I have disabled the Ajax cart. When clicking on addtocart it is redirecting to product page, correct I expect this to be like this. but my problem is all the products in the store have custom ...
0
votes
2answers
609 views

localhost redirect to original url

I have a web in a server, but I want update magento. To update I want copy the original magento in localhost, but I am having problems by redirect. I explain my process: I downloaded all content ...
0
votes
2answers
717 views

Magento2 : Redirect Page From Observer

I want to restrict some unwanted users to access the site. So I am redirecting them to 404 Page but my logic is going to an infinite loop as the event I am calling from controller_action_predispatch ...
2
votes
1answer
651 views

Browser Language Redirection For Multi Language Stores In Magento 2

Anybody knows how to use the following piece of code? I want detect visitors browser language and than redirect for the right multi language store. Want to use subfolders (www.domain.com/en/), not ...
1
vote
0answers
47 views

Redirect to cart page after place order success (Magento CE 2.3.1)

I am facing this issue too on Magento CE 2.3.1. I have put the log everywhere since the issue happened. I can see if using a payment method (currently using Cybersource SecureAcceptance) which will ...
0
votes
2answers
357 views

Magento Login Redirection Issue

I am using Magento ver. 1.9.3.2. The issue is customer login page not redirecting to account page. Login.phtm code <div class="account-login"> <div class="page-title"> <h1&...
3
votes
1answer
29 views

What is the use of [_secure => true] in controller redirect path argument in Magento 2

Anyone can explain to me what is the use of [_secure => true] in controller redirect path arguments in Magento 2.
0
votes
1answer
712 views

Magento 2 redirect going back to admin

I have a controller that is executed in the system configuration. The desired result is that the code is executed and is redirected back to its original page. When the url keys are active, the page ...
3
votes
2answers
2k views

Magento2: Custom Logout Observer with redirection

I'm implementing a SSO extension for Magento2. Right now I want to add an observer to the customer_logout event in order to execute a redirection to my custom logout endpoint. I followed what is ...
2
votes
1answer
115 views

Magento2.3.2: How to redirect customer to login page if not logged in before checkout?

How to redirect the customer to the signin/signup page if not logged in before proceeding to checkout?
0
votes
1answer
606 views

Use custom Admin URL redirects to login screen

I have the following problem: My webshop is available from 2 different URL. One that works only in the company network and an external URL. The base URL is set to the internal URL. Now to get the ...
17
votes
6answers
13k views

Magento 2 Custom Admin Action Redirected to Dashboard

I am taking the Magento 2 fundamentals development course and the Admin Router / Controller exercise seems out of date. The router does work, but the controller does not, it always just re-routes to ...
0
votes
1answer
43 views

Magento 2 admin login redirection loop

Magento 2.2.4 Store set up on subdomain: dev.store.com SSL Config variables: web/unsecure/base_url - https://dev.store.com/ web/unsecure/base_web_url - {{unsecure_base_url}} web/unsecure/...
1
vote
2answers
779 views

Magento 1.9 : How to redirect custom page after registration and then home page

How to redirect custom page after registration in Magento 1.9.2.4. In my custom page having the form if I submit that form ,then it will go to home page I have verify.phtml <?php ...
2
votes
1answer
672 views

Getting id_path or request_path or target_path of current category or product page

I have many store views. I need to be able to retrieve id_path or request_path or target_path of current category or product page, so that I could retrieve target_path of the same category or product ...