As of May 31, 2023, we have updated our Code of Conduct.

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
1 vote
0 answers
28 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 ...
Arnie's user avatar
  • 932
1 vote
3 answers
556 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?
Zoltan veress's user avatar
0 votes
1 answer
61 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.
Muhammad's user avatar
0 votes
3 answers
550 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:...
Nagaraju Kasa's user avatar
0 votes
1 answer
103 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 ...
Manjunath's user avatar
  • 177
0 votes
2 answers
207 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 ...
Glen Runciter's user avatar
0 votes
1 answer
291 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 ...
dksjhfg987t23's user avatar
0 votes
0 answers
72 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 ...
venkata prasad's user avatar
1 vote
2 answers
373 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 ...
Eubie Aluad's user avatar
2 votes
0 answers
32 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/...
jt9489's user avatar
  • 155
0 votes
1 answer
73 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....
dotancohen's user avatar
  • 1,105
1 vote
1 answer
254 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. ...
Sarvesh Patel's user avatar
1 vote
2 answers
1k 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 ...
Mage Explorer's user avatar
4 votes
1 answer
465 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" ...
PepsiMax's user avatar
1 vote
2 answers
703 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) { $...
chdzma's user avatar
  • 951
0 votes
1 answer
146 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($...
chdzma's user avatar
  • 951
1 vote
0 answers
40 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 ...
chdzma's user avatar
  • 951
1 vote
0 answers
59 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.
Rat's user avatar
  • 834
1 vote
0 answers
340 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/. ...
EshaRamady's user avatar
0 votes
1 answer
52 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 ...
MGPM's user avatar
  • 741
1 vote
2 answers
2k 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:...
ashanr's user avatar
  • 115
1 vote
0 answers
197 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 ...
phucnguyen.sw's user avatar
0 votes
1 answer
346 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://...
Oscar Vazquez's user avatar
3 votes
1 answer
135 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.
Renga's user avatar
  • 371
2 votes
1 answer
2k 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?
Teja Bhagavan Kollepara's user avatar
0 votes
1 answer
393 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/...
Pete Jaworski's user avatar
0 votes
0 answers
110 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 ...
bhargav shastri's user avatar
1 vote
0 answers
37 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?
Anil Laheri's user avatar
0 votes
1 answer
150 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)
Nafsss's user avatar
  • 720
2 votes
1 answer
1k 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....
sadlyblue's user avatar
  • 173
0 votes
2 answers
2k 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 ...
Josh Smith's user avatar
2 votes
2 answers
826 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 ...
Ciprian's user avatar
  • 527
3 votes
1 answer
368 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 ...
Paul Kuijten's user avatar
0 votes
1 answer
129 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 $...
Ravi Soni's user avatar
  • 1,809
3 votes
1 answer
177 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 ...
matinict's user avatar
  • 1,492
4 votes
2 answers
46 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?
Kaki Sami's user avatar
  • 327
0 votes
1 answer
546 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
insoftservice's user avatar
1 vote
1 answer
987 views

Nginx redirect for -only- homepage of old domain, to homepage of new domain

On the server.rewrites file within the nginx/ map, I have the following logic for redirecting the homepage of an old domain, to the homepage of a new domain: if ($http_host ~ ^(www\.)?olddomain.com ) ...
Julian Murillo's user avatar
0 votes
3 answers
751 views

Magento 2: redirect to home

I want to redirect my view to the homepage after data submitted in a custom form $resultRedirect->setPath('//'); This code leads to redirection, for now, please help Also is it possible to get a ...
Paras Arora's user avatar
0 votes
2 answers
68 views

How to htaccess redirect 301

How to add 301 redirections for the base URL in Magento 2 via .htaccess. http://www.example.com//? I want to redirect to these url versions 301 to http://www.example.com
Tomalo's user avatar
  • 151
0 votes
0 answers
69 views

Magento2 problem with redirect. Page work without www but with www i've got "The page isn’t redirecting properly"

As in title when I enter to page http://example.com everything fine but when I type http://www.example.com I've got a message "The page isn’t redirecting properly". I try to change base_url and ...
Pepe44's user avatar
  • 33
1 vote
0 answers
126 views

301 redirect loop on category view

when I try to access a category page, I get the error ERR_TOO_MANY_REDIRECTS caused by 301 redirects. Also trying by not rewritten url (like "catalog/category/view/id/309"), the result is the same. ...
alx.r89's user avatar
  • 11
0 votes
1 answer
42 views

Can I redirect to same domain but different currency?

I have request like this: redirect domainB to domainA --> USD redirect domainC to domainA --> EUR Can I set currency like that? thanks advance!
xanka's user avatar
  • 2,064
1 vote
0 answers
89 views

How to parse session url from one store to another in Magento 1.9?

I have two stores. Store A - Showing products as a catalog, unable to buy. Store B - Able to buy for exclusive customers with a given login account. That I want to do is, create a button on store A ...
Juvita. dk's user avatar
6 votes
2 answers
1k views

Redirected automatically to a store view based on a user group (B2C & B2B) - M2

I have created two store views, one for B2C and one for B2B. I need that when a B2B customer login will be redirected automatically to the view created for their user group. But for B2C customers can ...
Despotars's user avatar
  • 475
0 votes
1 answer
239 views

How to redirect subdomain to subdomain?

I have a question for config url rewrite on .htaccess file. On my store have two language is English and German. I setup English with domain main.cocal and German is de.main.local. so for now I want ...
xanka's user avatar
  • 2,064
2 votes
0 answers
58 views

www.domain.com/pub/ shows the web page without css/javascript loaded

I can access my site correctly like www.domain.com ( with all the content loads correctly), but if I type in www.domain.com/pub/ it is still accessible ( without js & css loaded). How do I fix ...
Mage Explorer's user avatar
0 votes
1 answer
237 views

Magento2.3: Order not Place and Redirect to checkout/cart page [closed]

I have upload my Magento2.3 site on site ground. Others things are working fine but order not place redirect to checkout cart page. system.log: [2019-04-19 12:15:47] main.INFO: Broken reference: ...
Hafiz Arslan's user avatar
1 vote
1 answer
820 views

Redirect 301 removing parameters in URL by .htaccess

In the file .htaccess in magento, I want to redirect a url with parameters. An example is this: https://example.com/presente/decoracao/teu-sorriso?PageSpeed=noscript I need to redirect this to the ...
Matheus Portela's user avatar
1 vote
1 answer
949 views

How to redirect customer on custom page after registration in Magento 2

Here is my code customerregistersuceessobserver.php <?php namespace Webkul\Marketplace\Observer\Rewrite; use Webkul\Marketplace\Observer\CustomerRegisterSuccessObserver; use Magento\...
prabhakaran7's user avatar
  • 1,057

1 2
3
4 5
15