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
1answer
18 views

Can you redirect CMS page to custom frontend route magento 2.3.5

I am trying to redirect a cms page to a new route which I have created for frontend. I am not sure if we can redirect to the new custom module route frontend with a config in admin area. My aim is I ...
0
votes
3answers
59 views

How to redirect a request in Magento from custom Module controller?

I have a third-party module installed in my Magento ver 2.3.4-p2 instance. I need to put a redirect from a file in the module, which is present in app/code/Plazathemes/Blog/Controller/Router.php ...
0
votes
0answers
17 views

Magento 2.3.x CE Payment Gateway Interface Redirects to External PSP Window/Endpoint

I'm a newbie in Magento, currently trying to customise/create new payment gateway interface for a CE version 2.3.x setup. I've tried referring to the devdocs, used the famous Sample module project as ...
0
votes
0answers
17 views

Magento 2.3 - List getProductUrl redirect with dubble slash // sign after domain

For some reason our Magento 2.3.5 store redirects the product url on the category list page, that we load using the default code <?= /* @escapeNotVerified */ $_product->getProductUrl() ?>, to ...
0
votes
1answer
21 views

Can I allow specific URL of default Magento2 Frontend and restrict all other Frontend URLs?

Our Magento frontend is in vue storefront, so we have restricted default Magento frontend URLs for our system. But I need one URL of frontend which is http://127.0.0.1/index.php/customer/account/...
0
votes
0answers
50 views

Problem with redirects using similar ulr on routes.yaml

On my routes.yaml file a I have something like this: The problem is that when I go to the page: www.mysite.com/white-product/0064/product-test It redirects me to www.mysite.com/product/color-white....
0
votes
0answers
8 views

On M2, how do you apply a redirect of all URLs for .html to /

On M2, how do you apply a redirect of all URLs for .html to / ? We have migrated from M1 to M2. The M1 store had .html as the end of products and categories. The M2 store just has / at the end of ...
0
votes
0answers
9 views

Based on the country navigate to Store in magento2

If a UK customer navigate example.us should be redirected to UK store If a UK customer login example.us should be redirected to UK store If a UK customer register US should be redirected to UK ...
0
votes
0answers
32 views

Magento 2 - Redirect to checkout or last visited page before login or account creation

I'm working on a plugin that when the Customer logins or creates an account It redirects to Checkout page If there is any product on cart, If the cart is empty I want to redirect to last visited page (...
0
votes
0answers
11 views

Magento Admin redirects to homepage after login

i configured the magento backend. But now it redirects me to the homepage after successful login. When i type the backend url again, it also directly puts me to the front end. I did clear all cache, ...
0
votes
0answers
12 views

Redirect product when Out of Stock

In one of my categories there is a lot products that are out of stock. I want to redirect the products that are out of stock to the category page without Filter By mark Ex: website/product1 -> ...
0
votes
2answers
24 views

Redirect customers to login page after new account is created

When a new customer registers an account on our site, the registration page simply refreshes and clears the password field, making it look like registration has failed, when in fact it has succeeded. ...
0
votes
0answers
11 views

redirect to same page after changing store front+ magento2

When I go a product page and change the store(english,danish) etc , it if redirecting to homepage of that store. I need to be in the same page. Could anyone help me in this.
0
votes
0answers
22 views

Invalid Form key.Please refresh the page

If I visit my website first time it give me an error of Invalid form key.Please try again lator. It is giving same error while add product in the cart and it directs the page to the Home page in ...
0
votes
1answer
13 views

I am unable to login to site and the admin e.g.example.com/admin due to ERR_TOO_MANY_REDIRECTS error

I am unable to login to site and admin in my website e.g. example.com/admin due to ERR_TOO_MANY_REDIRECTS error. This page isn’t working example.com redirected you too many times. Try ...
0
votes
4answers
52 views

How to implement a redirect to a custom success page after submitting a form on a custom page (similar functionality like checkout)

I have a submission form and a controller, with the execute method. At the moment, after sending the form, my page reloads and on top of the page I get an alert that notifies the user about the ...
0
votes
0answers
22 views

Magento 2.1.2: Url add directory names and returns 404 not found page

I have migrated my magento store from local to server and then i have changed core_config_data path to https://example.com/ and i ran all the commands like upgrade,deploy and other cleaned cache. But ...
1
vote
1answer
133 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
28 views

Error too many redirects after set developer mode

I have this error after set developer mode in Magento 2. I have tried to deploy static content, clean cache, flush cache, etc... Any idea?
0
votes
1answer
39 views

Magento 2 Webhook

Can someone help me with this issue, i'm using Braintree webhook, which is sending post data to my Magento 2 controller route, but from some reason, it always redirects me to home page, giving me 302 ...
0
votes
0answers
19 views

Magento 2 multi website not getting redirected properly

My Magento 2 is having multiple websites. Can anyone tell me what code to write in .htacess file to show redirection to the proper website? When I hit url1 of website 1 it redirects properly. but ...
0
votes
0answers
59 views

Custom module Controller/Action redirect to external domain does not work with admin secret key

I need to be able to redirect the user to an external domain for a Magento 2 module I'm building. I've tried to do this in two ways. In My class I have: use Magento\Backend\App\Action; use Magento\...
0
votes
0answers
24 views

How to redirect from email to a particular stores in Magento 2?

My website have 2 store, English and Arabic. I send forget password email from Arabic store but when i click in email then it redirecting to English store instead of Arabic. Can anyone help me how ...
0
votes
1answer
247 views

How to redirect to cart after adding product to cart programmatically

I want to redirect to cart page after adding the product into cart, I know there is a provision in config but I have a custom product type and that config is not working for that product. That ...
0
votes
1answer
37 views

Admin Redirect 2.3.4

I have 3 stores in my Magento setup, each one going to a unique URL (they share products across all three). I was using version 2.3.1 and everything worked great. When I went to the admin on any of ...
0
votes
0answers
23 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
12 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
14 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
35 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' =>...
2
votes
1answer
33 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.
0
votes
1answer
51 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 ...
1
vote
1answer
81 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 ...
2
votes
0answers
47 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
2answers
53 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://...
1
vote
1answer
32 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
136 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
36 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 ...
0
votes
0answers
26 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
64 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
42 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
31 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
79 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
30 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
26 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
27 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
30 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
33 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
66 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 ...

1
2 3 4 5
14