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
0 votes
2 answers
8k 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-...
Alexglvr's user avatar
  • 1,665
0 votes
2 answers
1k 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 ?
Karl Mark's user avatar
0 votes
1 answer
33 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 ...
Black's user avatar
  • 2,993
0 votes
1 answer
358 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 ...
Bhavin Shah's user avatar
1 vote
0 answers
65 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,...
Jason's user avatar
  • 538
0 votes
1 answer
283 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 ...
Slimshadddyyy's user avatar
1 vote
2 answers
2k 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 ...
Jeremy F.'s user avatar
3 votes
4 answers
10k 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 ...
Devadls's user avatar
  • 63
2 votes
1 answer
706 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 ...
Slimshadddyyy's user avatar
5 votes
2 answers
1k 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 ...
Will Cousin's user avatar
1 vote
0 answers
335 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), ...
Asheesh Srivastav's user avatar
0 votes
1 answer
7k 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 ...
user49277's user avatar
3 votes
1 answer
324 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] == ...
chdzma's user avatar
  • 951
0 votes
0 answers
102 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 ...
user3737063's user avatar
2 votes
1 answer
1k 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 ...
YWSW's user avatar
  • 326
0 votes
1 answer
778 views

Redirecting to homepage after add to cart

I'm having issues that when you add a product to the cart, it automatically redirects to the homepage. I have tried switching it to redirect to cart as well, but it still redirects to the homepage. I ...
Garry Spight's user avatar
1 vote
4 answers
8k 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 ...
Intellect Outsource's user avatar
0 votes
1 answer
470 views

How to redirect form frontController to another module's admin controller in magento2?

I have two modules 1)Paypalrec with action fornt - Index/Index 2) unsubscribe with action admin/Index/UnsubscribeFinal I want to redirect Index/Index controller to admin/Index/UnsubscribeFinal here....
Rutvee Sojitra's user avatar
0 votes
1 answer
39 views

sales/guest/form rendering twice after form submit, stripping out error messages

I've been trying to track down a bug where error messages aren't appearing when submitting the sales/guest/form form. From what I have found so far, on submitting the form, if you enter incorrect ...
eddhall's user avatar
  • 380
0 votes
1 answer
1k views

Magento 1: after login need to redirect to previous page (before login) instead of dashboard page

I want to redirect customer after login to previous page rather than account dashboard page. I set the Below Configuration Login to admin panel Go to System -> Configuration -> CUSTOMERS -&...
MINAKSHEE AWARI's user avatar
1 vote
1 answer
855 views

plugin to stop redirecting to cart from checkout

In M2 if the user tries to go to the checkout without any items in their cart the Magento\Checkout\Controller\Index\Index::execute() function redirects them to the cart. if (!$quote->hasItems() || ...
Holly's user avatar
  • 4,773
3 votes
2 answers
3k 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 ...
Plim's user avatar
  • 133
-1 votes
1 answer
1k views

Magento 2 redirect non-www to www nginx and varnish [duplicate]

what is the right way to redirect all http://domain traffic to https://www.domain for magento 2 on nginx and varnish server?
Ahmad Darwish's user avatar
2 votes
1 answer
2k views

Magento2 redirect to Product Details Page on add to cart

I have disabled the Ajax cart. When clicking on addtocart, it is redirected to a product page, correct I expect this to be like this. My problem is, All products have custom options. But the Home page ...
Joshi's user avatar
  • 347
0 votes
1 answer
316 views

Help for redirect all default page magento to 404 or homepage with .htaccess

I'am on magento 1.9.3.8, i know it would be time for me to go on magento 2... So i have this url by default in magento : downloader/ catalogsearch/advanced/ catalog/seo_sitemap/product/ catalog/...
devmagento's user avatar
0 votes
2 answers
626 views

Automatic URL redirect after deleting a product

Is it possible to add in an automatic redirect for when you delete a product from Magento? E.g. If you delete a product that is in Category A, it will then automatically redirect to the Category A ...
user280492's user avatar
0 votes
2 answers
331 views

How the Redirect is happen in magento2 customer account controller?

How Magento redirect the customer to account login controller form the account index controller?
govindaraj's user avatar
1 vote
3 answers
3k views

Magento 1.9 : Redirect url with store code

I have multi language website. In my website, I want to redirect using controller to actual path of the website. For ex. Currently, I redirect to www.example.com/testing/ But, I need to redirect ...
user avatar
0 votes
1 answer
465 views

Magento 2 Update Cart Redirects To Homepage

I've just moved our Magento website to a new server and for some reason the update cart button within the cart redirects the user back to the homepage. Unsure why this is happening since it is ...
lky's user avatar
  • 767
0 votes
1 answer
624 views

How to do redirect in Magento 2

I want to redirect to specific page. I have created one script for testing but its not working. I am unable to redirect to another website url. try { require_once __DIR__ . '/app/bootstrap.php'; ...
Sanjay Jethva's user avatar
1 vote
0 answers
37 views

Magento Skip HTTPs redirect

I am using following code RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/healthy-library # First rewrite to HTTPS: # Don't put www. here. If it is already there it will be included, if not #...
magento2new's user avatar
0 votes
1 answer
89 views

Redirect from /en/page.html to page.html

How can I automatically redirect custom pages from this URL site.com/en/page.html to this URL site.com/page.html In order to avoid problems with Google Search Console?
stsnow's user avatar
  • 219
1 vote
2 answers
48 views

Magento 2 : Redirect in case it's not me during dev phase

I've already installed Magento 2 and started with config and uploading products - working quite nice. Now I'd like to forward all traffic to another website (currently just using a index.php with a ...
Chris's user avatar
  • 577
1 vote
1 answer
59 views

I want to change the url for mobile user to m.mysite.com with same mobile view look in browser

I need my site www.mySITE.com to open as m.mySITE.com on mobile devices. It has SSL set up also. Please share the code and file name as I do not have any coding knowledge.I want to display the same ...
Austin's user avatar
  • 11
0 votes
0 answers
50 views

Redirect on login, doing it wrong

On login, my magento 1.9 site is redirecting to a specific product Specifically, when a user logs in from the login page, from the checkout page, any login I have been able to test always goes to the ...
Kender's user avatar
  • 373
2 votes
1 answer
24 views

When i click save and send test email it's redirecting to frontend

When i click save and send test email it's redirecting to frontendbaseurl/awfollowupemail_rules/edit/id/16/tab/followupemail_tabs_sendtest/key/f58025911cd3cb18f5d6683ab609c608/ but need to redirect ...
Nagendra Kodi's user avatar
0 votes
1 answer
64 views

Dev Admin Login Redirect

I have a dev site and a production site on the same VPS but on different cpanels. The dev is a not a sub domain, but a resolved domain. They both have different databases. The production site is ...
user3024161's user avatar
0 votes
1 answer
256 views

Not having the page reload or being redirected if the login credentials are wrong - Magento 2.2

On the login page, when the end-user enters a wrong password, the page gets refreshed and then returns the error massage, is there a way that I can have the error appears right away after entering the ...
Bondsmith's user avatar
  • 179
1 vote
1 answer
28 views

google search result error after removing store name

I have developed an e-commerce site using Magento 1.9. And it is working very fine. But the problem is when the site was live google crawled all the pages and products with the store name such as ......
Praveen's user avatar
  • 55
1 vote
1 answer
134 views

Redirecting customers to different pages based on customer group

I have been asked how much work this would be to do, I assume I would need to edit the AccountController.php But before I even start I am wondering if anyone knows first if possible and second how ...
John Burgess's user avatar
0 votes
2 answers
892 views

Redirect Url in magento2? [duplicate]

How to redirect from Observer in Magento2 ? I am using the below code: $controller = $observer->getControllerAction(); $action = $this->_request->getActionName(); $this->_actionFlag->...
Mahi M's user avatar
  • 2,530
0 votes
2 answers
963 views

Magento2 custom redirection is not working

I tried below code but page is not redirecting $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $redirect = $objectManager->get('\Magento\Framework\App\Response\Http'); $...
venkata prasad's user avatar
2 votes
2 answers
722 views

Automatic redirection Controller

I am creating a controller extending \Magento\Customer\Controller\AbstractAccount but it automatically get redirected to http://example.com/customer/account/login/ how can I stop that. basically all ...
Arun Karnawat's user avatar
4 votes
0 answers
51 views

Magento 2 : There is Different Class for When User Logs Out Due to Inactivity

I need to redirect customer to a different URL when is logged out automaticly. I made a prefence for Magento\Customer\Controller\Account\Logout but it looks like, when the customer is logged out due ...
Gianni Di Falco's user avatar
0 votes
1 answer
225 views

Redirect in observer http 500

I am trying to redirect in my controller_action_predispatch observer. However, I got http 500 error, unable to handle the request Note: I got the error 500 once i include \Magento\Framework\App\...
stackdisplay's user avatar
0 votes
1 answer
3k views

How to redirect 404 error to specific url?

I've faced the problem: my seo-specialist asked me to redirect all 404 to same url (/404.html). Not to show content on noRoute page but redirect to this url. I've made changes in /app/code/core/Mage/...
Kyrylo Romantsov's user avatar
4 votes
1 answer
799 views

How to trigger 404 in Magento 1 from a block or helper?

I would like to redirect the user to 404 when an error occurs from a block or helper. In the controller i can do it like this: $this->norouteAction(); return; I would like to do the same thing ...
Attila Naghi's user avatar
  • 3,775
2 votes
2 answers
212 views

Redirecting from block not working

I'm trying to redirect from block but it's not working. But same methods work in different projects. 1. Process 1 public function __construct( \Magento\Framework\View\Element\Template\Context $...
P S's user avatar
  • 1,983
1 vote
0 answers
611 views

Magento 2 Constructor returns Fatal error: Uncaught TypeError. How to resolve?

<?php namespace Module\Name\Controller\Index; class Myclass extends \Magento\Framework\App\Action\Action { protected $formKey; protected $cart; protected $product; public function ...
Ramesh KR's user avatar
  • 826
-1 votes
1 answer
713 views

recovery for deleted composer.json and composer.lock

I mistakenly deleted composer.json and composer.lock from my Magento ecommerce site and now my site will not respond. How can i solve that please? I tried reinstalling but still the site will not ...
dilas's user avatar
  • 1

1
3 4
5
6 7
15