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
17 views

Magento place order redirects to shopping cart

Order registration in Magento 1.9.4.3 is not allowed. After press the Order Place button, Error 503 is shown on the Google Chrome Console, the user will be redirected to the shopping cart page. Of ...
0
votes
0answers
9 views

catalog search on magento 2.3.1 some times redirects to a paricular category page on IPAD

catalog search on magento 2.3.1 some times redirects to a paricular category page on IPAD , i have checked for any url redirects there everything was fine also i have checked database and entire files ...
0
votes
0answers
12 views

magento 2.3 admin panel redirect to customer account section after login

I'm facing some issue after login magneto2.3 admin account, its redirect to "My Account" Section. Kindly have a look this type of issue and guide me. https://prnt.sc/qnef67
0
votes
0answers
23 views

page links do not work properly

Some pages began to work incorrectly. If I follow the site.com/privacy-policy It redirects me to site.com/search/privacy%20policy?amnoroute tell me how to fix <?php return [ 'modules' =>...
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
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()) { $...
2
votes
1answer
22 views

Redirect subdomain with nginx

I have some subdomain from the old site like 123.abc.com and I want to redirect them to abc.com/123. I have installed magento 2.3.2 and nginx as webserver.
3
votes
3answers
13k views

How to disable forced redirects in magento

I have enabled it in the Web category under system. I have lost my admin access due to the https problem so I would like to disable the forced redirect. Is there a way to do that using db or shell ?
0
votes
1answer
25 views

Redirect of web setup wizard - varnish

After installing varnish, I am unable to get to Web Setup Wizard. The browser spins for a while and then I end up on https://example.com:81/setup with an error that Chrome interprets as: took too long ...
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
1answer
62 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" ...
1
vote
1answer
49 views

Too many redirects in Magento 2.3.3

I am trying to migrate a magento version 2.3.3 site / system from one server to another. After doing everything I should do to complete the migration I am getting 302 as a server response once after ...
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). ...
3
votes
2answers
2k views

How to redirect simple products to configurable product URL with options preselected in Magento 2.1

How can I redirect a SEO URL Key of a Simple product of which the visibility is set to "Not Individually Visible" to the parent Configurable Product SEO URL Key? There are two important conditions ...
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 ...
1
vote
2answers
39 views

Magento2 .htaccess

I want to redirect another url. https://example.com/store1/lstoreviewcode/ https://example.com/store2/cstoreviewcode/ to replace with https://example.com/store1/storeviewcode/ https://...
2
votes
0answers
38 views

Configurable product will not redirect to product view page after click on add to cart

if a customer forgets to choose the product option of the configurable product on the product listing page and click "add to cart" it is redirecting you to the product view page with the message: "You ...
1
vote
1answer
924 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
1answer
27 views

In the category page if i click the add to cart button need to redirect into the specific product page in magento 2.3.2

I need to redirect the specific product page when i click the add to cart button in the category page. instead of add the product to the shopping cart in magento 2.3.2 If anyone know the answer ...
0
votes
1answer
42 views

Magento 2: How can customer Sign-In/registraion form in checkout page

While a user who is not logged in, clicks Proceed to checkout, I want them to be taken to the login page. Then, after they've logged in or registered, they should be taken back to the checkout page. ...
0
votes
1answer
25 views

How to redirect the specific product page when i click the add to cart button instead of add the product to cart in magento 2.3.2

I want to redirect the specific product page when i click the add to cart button instead of add the product to cart in magento 2.3.2 If anyone know the answer please share the exact code and folder ...
1
vote
3answers
3k 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.
2
votes
2answers
148 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 ...
0
votes
0answers
18 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 ...
4
votes
3answers
2k views

Add to cart redirect

How can redirect to a CMS page when the "add to cart button" (on a product view page) is clicked? I have already disabled the redirect to the cart page after the "add to cart" button is clicked. Now ...
0
votes
3answers
75 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
614 views

Use custom Admin URL redirects to login screen

I have the following problem: My webshop is available from 2 different URL. One that works only in the company network and an external URL. The base URL is set to the internal URL. Now to get the ...
1
vote
1answer
17 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
3answers
4k views

Redirect customers to Home page/previous page after login/create account in magento 2 instead of Dashboard?

I am trying to redirect to user after login or creating account to either home page or previous page. My controller code is following it is not able to login or create an account. <?php /** * * ...
0
votes
2answers
743 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 ...
0
votes
2answers
679 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 ...
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 ...
0
votes
1answer
759 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 ...
3
votes
2answers
2k views

Magento 2 How to redirect customer to specific store view according to browser language?

How to redirect customer to specific store view according to browser language?
1
vote
3answers
38 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?
2
votes
1answer
686 views

Getting id_path or request_path or target_path of current category or product page

I have many store views. I need to be able to retrieve id_path or request_path or target_path of current category or product page, so that I could retrieve target_path of the same category or product ...
0
votes
1answer
29 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.
8
votes
6answers
12k 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
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
2answers
862 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. ...
2
votes
1answer
958 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
0answers
23 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
22 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
16 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 ...
1
vote
2answers
2k 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
0answers
20 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
32 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
38 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
1answer
2k 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 ...
8
votes
10answers
30k views

Magento Redirects to Old Website regardless of what changes are made!

We are having the strangest Redirection problem on a Magento site. We copied the sites contents from another Magento site to a new URL. We have done this in the past with no problems but for some ...