Stack Exchange Network

Stack Exchange network consists of 174 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 [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.

0
votes
1answer
15 views

Controller redirect on jquery post request from phtml template

I want to redirect user on button click from .phtml template file, however, really struggle to find a working solution. Here is my controller with path of /batchorder/index/addtocart: public ...
0
votes
1answer
14 views

Magento 2 controller redirect on button click in phtml file

I want to redirect customer using controller when button is clicked in one of my phtml files. So far I got, controller: public function execute(){ return $this->addToCart(); } public ...
0
votes
1answer
23 views

Magento 2 redirect to external URL from controller

I want to redirect to a external URL in my controller but not in the execute() function. This code works fine and the result is a redirect to google: public function execute() { $resultRedirect =...
0
votes
0answers
10 views

Controller Redirect Returning HTML and not actually redirecting

I have made a simple test controller, that should just redirect the user to the checkout/cart page when it is hit. After reading a number of different tutorials online and viewing countless Magento ...
0
votes
0answers
14 views

Show Messages from Message Manger after Redirect

I am currently using the message manager to display a series of messages from my controller. $this->_messageManager->addSuccessMessage(__("All requested products have been added to the cart."));...
0
votes
1answer
17 views

Magento 2.2.2 : Redirect not working from plugin

di.xml <type name="Magento\Framework\AppInterface"> <plugin sortOrder="1" name="noroute_redirect" type="Namespace\ModuleName\Plugin\AppInterfacePlugin"/> </type> ...
0
votes
1answer
21 views

skip function execution using before plugin

I'm overriding the controller Magento\User\Controller\Adminhtml\User\Validate::execute() using before-plugin so I can perform some checks before magento validate using this function. If certain ...
0
votes
0answers
21 views

Magento 2 redirect to localhost

Magento 2 redirect to localhost I have install magento 2 on ubuntu in virtual box. and I have forward the port from host machine to virtual machine. but when I try to access magento it redirect to ...
0
votes
1answer
18 views

Redirect from around plugin in Magento 2

How to redirect from around plugin to another page with an error ?
0
votes
0answers
51 views

Magento2 : Why I'm redirect to Empty Cart After Checkout?

I am running Magento 2.2.6. I noticed my analytics data seemed off so I went in and checked and I am only receiving about 50% of my transactions. I can see the transaction id so I have compared the ...
1
vote
1answer
31 views

How to redirect to particular stores when the site opens

My website has 2 stores there are two different store codes for that the first is us and the second is ms when I enter mysite.com then it redirects to mysite.com/us but I want to change it to ...
0
votes
1answer
31 views

Magento 2 - Load Balancer - Health Check Failing - 302 redirect

I am having an issue with my load balancer health checks. It is attempting to access the server hosting the Magento 2 site. When I curl the IP address of the machine I get the following Response ...
0
votes
2answers
30 views

Redirect from Controller

In my controller BVZ\Customer\Controller\Index I'm doing a redirect using return $this->_redirect('customer/index/firstAccess'); When the code execute, the request are made (see the print below) ...
0
votes
1answer
28 views

Magento 1.9 create log for no-route

Is there anyway I can force Magento to create a log file that contains the offending script path that is causing a redirect to no-route?
0
votes
1answer
40 views

Magento 2.1 redirects in Observer after payment

I'm creating a payment method gateway, that requires after place order in the frontend, redirects to the custom controller that I've created. I created an observer sales_order_payment_place_end to ...
0
votes
0answers
47 views

Customer redirect issue with login post plugin magento2

I have used two plugins to use the referral url's for customer login page. here is the code of my etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin ...
4
votes
3answers
572 views

What type of redirect is this?

While i'm studying a line of code in magento vendor file I found this code $resultRedirect->setPath('*/*/'); What does this '*/*/' means and where does this redirects. I hope will get ...
1
vote
1answer
73 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 ...
6
votes
2answers
152 views

Update: Magento 1 checkout account create redirect, SUPEE-10570v2 and Magento 1.9.3.9

We currently have a strange problem on our Magento 1.9.3.9 shop. When someone fills in the password fields in the checkout, to create an account. In that case when clicking the place order button on ...
0
votes
1answer
18 views

URL re-written with a -1

https://theidleman.com/brands/carhartt-1.html has been generated in addition to our old https://theidleman.com/brands/carhartt.html URL - how can I delete the '-1' and redirect it if the '-1' does not ...
0
votes
1answer
28 views

Magento 1.9 - Observer Event redirection issue after placing order

This is my xml : <global> <events> <sales_order_place_after> <observers> <test_magewidget_model_observer> <...
0
votes
1answer
39 views

No Forward Slash on URL redirects back to Homepage

We've got a strange issue with a Magento 1.9 install where any page that you try and navigate to that doesn't have a slash on the end of the URL is automatically redirect back to the homepage. Our ...
0
votes
0answers
19 views

Stop admin url Redirect to dashboard

Preconditions Have latest M2.2 installed 1)install demo data (using bin/magento demodata installation options) 2) clean browser cookies for the domain you're at (to make sure we start from clean ...
0
votes
3answers
82 views

Customer redirect issue with plugin method magento2

I have used below code to write plugin method for loginPost controller. this is the code of etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin name="...
0
votes
0answers
49 views

Magento 2.2.6 Reverse Proxy Too Many Redirects

I have looked all over the place for similar problems so I could find a solution, but I think I have a very unique problem. I have a rails app running on Heroku (gamersparadise.io) that I wanted to ...
0
votes
2answers
36 views

Magento keeps redirecting to main domain

We have two domains, one for the german shop and one for the shop in switzerland. The urls are like: www.mycompany.de and www.mycompany.ch But if I open www.mycompany.ch then I get redirected to ...
0
votes
0answers
29 views

Magento 2: Redirect to backend customer list from frontend

I'm trying to create a menu to redirect to the client list in the backend. The menu is: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
88 views

Magento 2.2 - How to redirect url with store code to url without store code?

The site is been indexed on Google with Store Code for each store view (it/en/gb/au) now the store codes are been removed from url, so all the links end up in a 404 error. How can I set an automatic ...
0
votes
0answers
27 views

magento 2.2.5 turn back to home when i change store view

i've an issue on magento 2.2.5. I've created two store view it/en, when I'm on product page and change store view from it to en and vice versa, I'm redirected to the home page. Someone can help me? ...
1
vote
1answer
305 views

magento 2 redirect url with parameters from controller

I am trying to redirect to a different controller from one controller . I also want to set an Url parameter along with the redirect. But this is throwing me an error Uncaught Error: Call to ...
2
votes
2answers
129 views

Magento 2 - CMS Block redirection to url

I would like to be able to redirect to a url when the user clicks the category. I have this menu, with the News category. This category loads a CMS Block: And only having a script which redirects me ...
0
votes
2answers
644 views

Magento2 : How to make a redirect with params

I have a form with several inputs.(text and file). <form id="form-configurator" class="form-configurator " name="formconfigurator" action="index/toto" method="post" enctype="multipart/form-...
0
votes
2answers
268 views

How to Redirect 404 page to homepage

Recently I have seen over 4000, 404 pages in my webmaster. My site is https://kindergoed.com/ can anyone help me to solve this issue ?
0
votes
0answers
7 views

Imported URL Rewrite only works after manual saving

We're migrating this Magento store and we imported several redirects using a dump into the core_url_rewrite table. The dump was successful and we checked the records inside the data base to make sure ...
0
votes
1answer
26 views

Uri is getting removed when removing https?

If I open the URL www.mypage.de/katalog-bestellen in Chrome then the url is automatically changed to "https://www.mypage.de/katalog-bestellen" and the correct site loads. But If I open the same URL ...
0
votes
1answer
47 views

Magento 2.2.4 blank body tag except home page and on all other pages

I've Magento 2.2.4. I already have files on bitbucket. I downloaded files of app/code modules and merged with fresh Magento 2.2.4 and imported the database which already exists. After running composer ...
1
vote
0answers
22 views

Are the Magento 2.1.14 rewrite rules in htaccess file working properly?

In the default htaccess file in Magento 2.1 there are some RewriteCond's and RewriteRule's that are explained in the htaccess.sample file that comes with Magento 2.1. never rewrite for existing files,...
0
votes
1answer
38 views

Magento 2 - Send 403 status and access denied content and redirect using Observer

I am using below function to send 403 status and "access denied" content and redirect user to some other website or custom page if user's IP is not in list of allowed IP's (whitelist) protected ...
0
votes
1answer
62 views

How to reroute simple products to associated configurable products - Magento 2.2.5

I have set up a Magento website where simple products are shown in the category listings and the configurable products for these items are in a hidden category. I need to add some functionality so ...
2
votes
3answers
500 views

How can i redirect to homepage after login

I have used following code for redirect to homepage. But the page not redirecting after login. <?php namespace Vendor\Module\Controller\Account; use Magento\Customer\Model\Account\Redirect as ...
2
votes
1answer
70 views

Magento 2.2.2 - Redirect user to CMS page based on IP using Observer

events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event ...
3
votes
2answers
196 views

How to redirect simple products to the parent grouped product?

I have simple products that are part of a grouped product, however, when you click on the simple product in the search it does not take the user to the associated parent grouped product - it goes to ...
0
votes
0answers
46 views

Redirect to customer's store view on login as customer from admin

We would like to redirect to the customer's store view when logging in from login as a customer from admin, this seems like it should be default behavior but we always get the default store view (ID: ...
1
vote
0answers
128 views

Magento 2: Order Success Page Not Loading for custom payment method

I am using Webkul Ccavenue extension for Magento 2.1.4. On successful payment, a success response is sent to Magento, after which it should redirect to order success page(checkout/onepage/success), ...
0
votes
1answer
528 views

Magento 2, too many redirects. All browsers, frontend and backend

I've scoured through numerous threads on this subject and tried everything that was pertinent to my situation to no avail. I have SSL enabled. Everything was working fine until I edited one of the ...
0
votes
0answers
88 views

Magento 2 Payment Redirect Gateway Update Order

I am trying to implement a Magento 2 Payment Gateway with redirect. The payment provider needs two calls to be made to its api for a complete payment. A "Create Order" call to initialize the payment, ...
3
votes
1answer
66 views

Magento 2: It does not redirect me correctly

I have different store views, one with code 'en' (this works) and one with code 'es_es' (this does not work and redirects me to the home). This is the condition that redirects: if ($result[0] == ...
0
votes
0answers
35 views

Magento 2 page redirection to CMS pages

I want to redirect to two different CMS Pages when a custom form is submitted. Can any one help how we can do this. I'm trying form the .phtml template to get the CMS Page's ID and then redirect to ...
1
vote
1answer
157 views

Magento 2 with Varnish sometimes does not redirect HTTP to HTTPS

Our Magento 2 is setup with https on all pages (unsecure and secure, "use secure on frontend", etc.). However sometimes when I enter ourdomain.com it redirects (correctly) to https and sometimes it ...
0
votes
0answers
15 views

Magento 2.2.3: Store Errors

I have 7 magento store and i have tested with two custom domain that was fine but now i am trying with 7 new domains but giving me too many redirects error. These domains are pointed via cloudflare. ...