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
0answers
14 views

Magento2: how to add a href (anchor) in succes or error message page while after add to cart product

Add Anchor link to Success or Error Message. if I am not wrong module-checkout/Controller/Cart/Add.php responsible file to my requirement. followed many links like below but unable to find a solution ...
1
vote
1answer
13 views

Store switcher url is not redirecting to the store

I'm working on store switcher in magento 2.3.3 I get the url but url is not redirecting to the particular store again get back to the same store http://test.de/test_de/stores/store/switch/?SID=...
1
vote
0answers
18 views

Checkout redirects to checkout again after purchase - no order created

Magento 2.2.3 Whenever I buy something in my store, I am being redirected to the checkout again, just as if I did not press the "buy now" button. The cart is still filled, no order is created. I ...
1
vote
3answers
37 views

Magento 2 Unable to redirect http to https when using multistore

I am unable to redirect HTTP to https when using a multistore option. Anyone else using more than one store and has the http->https auto redirection working from .htaccess?
0
votes
1answer
28 views

Magento 2 When a user logs in, can we redirect to homepage? [duplicate]

I would like to have the user redirected to homepage instead of dashboard as soon as he logs in.
0
votes
3answers
66 views

Unable to redirect to cart page from observer?

Here is the code, please review and advise. Demo/Test/etc/frontend/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
26 views

redirect to controller from script file with param in Magento2

I have created a script file in root folder of the magento as like below <?php error_reporting(E_ALL); use \Magento\Framework\App\Bootstrap; require __DIR__ . '../../app/bootstrap.php'; $bootstrap ...
0
votes
0answers
19 views

AMASTY EXTENSIONS - Category Filter when clicked, redirect to the home page url

When I click on one of the category filters in the sidebar, I get a redirect to the base url, I can’t find it because of what. Magento 2.2.3 I have 2 stores, the default store works with this module ...
0
votes
0answers
20 views

Magento 2: Make a view all link in sub category

I have a category, I want to check if(sub_category > 20) { link <a>view all</a> category and it link redirect to new page show all sub category } else { not show link view all ...
0
votes
0answers
19 views

Magento 2 - ERR_TOO_MANY_REDIRECTS on Frontend - Sporadic

I am facing an issue where the storefront throws ERR_TOO_MANY_REDIRECTS error once or twice a day. It does not follow any specific time pattern. To fix this, all we are doing is to just refresh FPC ...
0
votes
2answers
31 views

Redirect to checkout from custom observer

I need to redirect to checkout from an observer related to the event customer_account_edited. Here is my code. I've deleted a lot of rows that actually works... Magento is doing everything well but ...
0
votes
1answer
36 views

How to remove .html suffix?

I have a running store with around 600 products and wanted to remove the HTML suffix from my URLs. I removed the HTML in the config and reindexed. All HTML pages are being redirected to the non-HTML ...
0
votes
0answers
25 views

How to redirect the Magento 2 controller into post page

When I click on add to cart button from my custom page. If products are avaiable it goes to the Cart page and if not they are redirected to the Post page, but it redirects to the Index page. Can ...
0
votes
0answers
12 views

Magento 1.9.3.4 Multistore setup, close one store and redirect to another..?

I'm in need of some advice, I have a Multistore setup with 4 store views running under toplevel domains this is part of my index.php $currwebsite = "eng"; /* THis is my www.website.com domain with 3 ...
0
votes
2answers
37 views

Cannot redirect to a specific page using Observer events such as sales_order_place_before, and checkout_submit_before in Magento 2.3

I am currently implementing a behavior where I will check the quote items in cart, then check if it contains my custom attributes. If true, then it will redirect me to a specific page(CMS) page. This ...
1
vote
0answers
26 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/...
0
votes
1answer
22 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....
1
vote
1answer
39 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
57 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 ...
4
votes
1answer
53 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
0answers
13 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 ...
1
vote
2answers
33 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) { $...
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 ...
0
votes
1answer
35 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($...
1
vote
0answers
21 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 ...
1
vote
0answers
12 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
0answers
31 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/. ...
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
0answers
18 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, ...
1
vote
2answers
90 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:...
0
votes
0answers
20 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
0answers
68 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
1answer
33 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://...
3
votes
1answer
30 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.
2
votes
1answer
224 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
48 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/...
0
votes
0answers
32 views

Magento2 redirecting to homepage

Can anyone let me know why below code of refer URL redirects to homepage, instead of last page visited in controller ? This happens only in live website, beta website works perfect: $resultRedirect ...
1
vote
0answers
26 views

Customer redirect on previous page after login Magento2 [duplicate]

Is there any solution for the customer, like After login customer redirected to the previous page?
0
votes
0answers
21 views

Difference between redirect and iframe

I want to know what is the difference between Magento v2.3.1 (iFrame) and Magento v2.2.3 (Redirect)
2
votes
1answer
142 views

Custom admin page too many redirects Magento 2

I'm starting to get familiar with Magento 2. I installed v2.3.1 in an Nginx/PHP-fpm and got it working, including the sample data. Then I followed everything in the tutorial at https://devdocs....
0
votes
2answers
92 views

Redirect all pages to homepage via .htaccess except backend

I've been trying to redirect all pages of my Magento website to homepage via .htaccess - except the backend, naturally. Currently, I'm using these rules and everything is working fine so far but I ...
2
votes
2answers
98 views

Redirect custom recurring payment method to payment gateway after order is placed in Magento 1

I am trying to implement a custom recurring payment module for Magento 1.9. I follow a tutorial from ModulesGarden Blog combined with Paypal Express. I was able to create a new payment method that ...
3
votes
1answer
47 views

Magento 2 - Clean SEO URL with attribute

We run Magento 2 - 2.1.6 Question: If I create a link based on layered navigation attributes (storeurl: /clothes?cat=1029&gender=124) for example. We get a lot of errors regarding Google Search ...
0
votes
1answer
32 views

Magento2: Redirect issue from the Observer

I facing issue while redirect from observer file. Actually code worked on localhost but on the server it's not working. Here is the code public function execute(\Magento\Framework\Event\Observer $...
0
votes
0answers
32 views

Magento 2 checkout place order redirects to checkout

When I complete the checkout and hit the "Place Order"-button, the system redirects me to the same checkout page without telling me why (for example an empty field or something). In some cases (+-10%) ...
3
votes
1answer
32 views

How to show success messages on magento 2x home page externally redirect url?

In Magento 2.x form use in <iframe src="forms.netsuite.com "> after submitting from netsuite return/redirect to home-page-url/?whence= I need to show success message in home page: <div ...
4
votes
2answers
38 views

Set module /blog as homepage

I am trying to set the AheadWorks blog module as homepage of Magento 2 for a site. So user gets directly to domain.com/blog instead of domain.com. Is it possible in the admin or Nginx somehow?
0
votes
1answer
77 views

301 Redirect the Out of Stock Product Pages

Want to redirect for the products who are out of stock to custom url Had tried below url but it did not helped https://stackoverflow.com/questions/4824072/magento-out-of-stock-product-seo-problem