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
2answers
436 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:...
0
votes
1answer
864 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 ...
0
votes
3answers
87 views

In Magento 2 after ajax success can't redirect page in admin

After ajax success can't redirect page in admin in Magento 2 var redirectUrl = "<?php echo $block->getBaseUrl().'admin/trackorder/shipinfo' ?>"; $.ajax({ url: urlLabel, ...
2
votes
1answer
970 views

Admin Not Redirecting After Login

When running 1.7.x if we tried to open a link in to the admin section but we weren't logged in, we could login and it would automatically bring us to the page we had first tried to access. After ...
0
votes
3answers
25 views

Magento 2.3 Site Unwanted Redirect

My Magento 2.3 site is redirecting and I am unsure why. When I access the domain, it redirects to domain.com/Industrial%20Cleaning%20Products. I have done the following to try and rectify the issue: ...
1
vote
2answers
5k views

Remove HTTPS auto redirect

I changed the secure options on Configuration -> Web 'use secure in frontend' and 'use secure in adminhtml' to 'yes' but it was not configurated yet. I cannot access the admin pannel from a browser ...
0
votes
0answers
11 views

Magento 2 - Redirect to last page after login for custom login form

I created a custom login form in the header. If you click on the icon then the form shows. However, if I login in this form, then the user is getting redirected to the customer dashboard, after he ...
1
vote
2answers
3k 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 ...
0
votes
3answers
1k views

site is redirecting to old url

I have created a test store to test theme and plugins at and this test store is reside same directory where my live website is present my live website url is and test store url is https://test....
0
votes
0answers
24 views

Show custom message after redirect in M2

I want to show error message in order view page when user click on Credit Memo link using before plugin. I have redirect to order view page as showing in this link when user click on Credit Memo link....
0
votes
1answer
880 views

Redirect category link with single product directly to the product page magento 2.1

I have 5 categories with single products each. I also have 5 stores. I want to redirect the user directly to the product page when he clicks on the category link in the main menu for each store. ...
0
votes
1answer
4k 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 ...
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
3answers
49 views

Redirects and SEO

We have a category that we make available for approximately 2 weeks every 2 months for a presale. Once the presale is finished I redirect the category to another using a custom redirect. What sort of ...
1
vote
2answers
2k views
0
votes
0answers
16 views

Magento 2 customer is always redirected back to /checkout/cart/

We have some customers gettign in touch stating that whenever they go to www.domain.com/checkout they are just redirected back to www.domain.com/checkout/cart page. Has anyone else had this issue ...
0
votes
0answers
18 views

Customers being redirected to checkout after login

Title says it all. After a customer logs in, it redirects them to checkout. What could be causing that? I have a plugin that does login for pricing, but this happens even when I disable it. The option ...
0
votes
0answers
15 views

Redirect to CMS page url If anything after the url

I have a URL of CMS page like https://example.com/test-page. Now I want to redirect every request to the same URL If anything written after that URL. For Example: If https://example.com/test-page/list/...
0
votes
1answer
21 views

Cart and Checkout redirecting to 404

I just updated to Magento 2.4, and I can't access my cart or checkout anymore. I see 500 errors, and a redirect to /noroute, bunt I can't figure out what's causing it. Any way I can track this down ...
0
votes
0answers
7 views

Installing magento2 ina subdirectory give me eternal loops in the admin

How can I have magento2 in a subdirectory in a reseller with cpanel. I have the domain pointing public_html but my magento instance have to be in public_html/src I put the following code in the ....
0
votes
0answers
16 views

Magento 2: How get setted URL

I have question, for example, we have some redirect: class toto extends \Magento\Framework\App\Action\Action { protected $_resultPageFactory; protected $_resulFactory; public function ...
0
votes
1answer
42 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)
0
votes
1answer
15 views

Magento 2 admin controller is not working

Here am added a admin controller, here is my code etc/adminhtml/routes.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
4
votes
2answers
333 views

How to block cpanel link of my magento site

I had created an ecommerce website named http://example.com. I want to block my cpanel link for users who are accessing my website. Link is example.com/cpanel. If any I.T. specialist user or general ...
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. ...
4
votes
3answers
646 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. Hope I will get more ...
0
votes
3answers
779 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
1answer
15 views

Magento 2 Frontend Page shows Try clearing your cookies

I have installed magento through command line by using bin/magento setup:install --base-url=http://127.0.0.1/magento2/ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --...
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="...
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()) { $...
1
vote
1answer
424 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 ...
3
votes
1answer
2k 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
88 views

Redirects using routes.yaml in the root folder .magento/routes.yaml

Can anybody for the love of god help me with the syntax here. I feel like i've tried everything and everytime i try to push this to the magento cloud it complains about something or another. Here's my ...
0
votes
0answers
8 views

simple redirects using Marketing > URL REWRITES not working properly

Sometimes when people click on a search result that has a broken URL like https://www.example.com/catalogsearch/result/ or https://www.example.com/catalogsearch/result/?q= they will get taken to a 404 ...
0
votes
0answers
61 views

Magento2 How to redirect category url to external link?

I have a requirement wherein I need to redirect multiple categories to external site's respective category pages. For the same I have created categories in magento. Whenever we create a category in ...
1
vote
2answers
109 views

Magento: How to redirect to a phtml page from a controller?

I have a controller and from there I want to redirect to a custom phtml file. My controller path is app/code/Softadroit/Prescription/Controller/index/Save.php The phtml file is stored in app/code/...
19
votes
8answers
53k 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?
10
votes
8answers
16k views

Magento2: redirection from Observer

We have already know that How to redirect from an Observer for magento 1.x version. but for magento 2,we does not know How to forcefully do redirection from an observer. I have done google ,but does ...
0
votes
0answers
19 views

I get redirected to https://www.hugedomains.com/domain_profile.cfm?d=magtest&e=com

I just installed magento on my localhost but when I try to access it for the first time with localhost/magento/admin i get redirected to that page.
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 ...
2
votes
1answer
925 views

Redirect issue after add to cart in magento2 custom controller

I am calling my custom controller for adding the product through the form action. Below is my controller file. <?php namespace {Vendor}\{Module}\Controller\Product; use Magento\...
2
votes
1answer
1k 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 ...
1
vote
3answers
4k 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
2answers
1k views

Magento redirect to checkout after adding to cart

I want to disable the shopping cart page. I mean that when customers add products to cart, Magento will skip the shopping cart page and redirects them to the checkout page to shorten buying process. ...
1
vote
1answer
339 views

Magento 2 varnish Checkout to cart Redirect Problem

Preconditions 1.Magento 2.3.4 2.Must Varnish Enable Steps to reproduce 1)Do not add any product to the cart. 2)Directly go to https://www.sample.domain/checkout/ 3)Because No product in cart ...
0
votes
2answers
794 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 ...
7
votes
4answers
24k views

How to redirect a category to another link?

I have an extension in my store that I can upload posts with this and it has a link in the top menu that' name is blog. In the menu, I have a category that's name is News and I want to redirect it to ...
0
votes
1answer
54 views

Magento 2 Custom MassAction redirects to dashboard with “Invalid Security Token” but works?

I created a custom mass action, and it shows up and seems to function fine except rather than redirecting back to the order page, it goes to the admin dashboard and says the typical "Invalid ...
1
vote
1answer
21 views

How to redirect (& show flash message) on CMS contact page when wrong captcha submitted

I have added a Contact form in a CMS Contact page. added Layout Update XML section added vendor/magento/module-contact/views/frontend/templates/contact.phtml vendor/magento/module-contact/controller/...
0
votes
2answers
38 views

How to run Magento 2.3 on several domain aliases, but using only one website (and one storeview)

I need to create many different magento 2.3 shops as subdomains of the main shop www.domain.com; eg shop1.domain.com, shop2.domain.com, shop3.domain.com, shop3.domain.com All those subshops will share ...

1
2 3 4 5
14