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
0 answers
78 views

Redirect url with key formula in Magento 2

I'm trying to do this in Magento 2: I have my url : https://www.example.com/page/ I'd like to add after /page a key value. Example : /page/key1, /page/key2 ... Then I get the key value with $this->...
ccreusat's user avatar
0 votes
1 answer
171 views

How to add 301 Redirect pages in magento 2?

I want to add 301 redirects to these URLs - 1-> From www.abc.com/blog To www.abc.com/blog/ 2-> From www.abc.com/contact To www.abc.com/contact/ 3-> From www.abc.com/catalogsearch/advanced To ...
Vishal Thakur's user avatar
0 votes
1 answer
137 views

Magento 2 If associated product qty are out stock, so configurable how to disable?

We were using Magento 2.3.5 version. Question: associated product qty are out of stock, so configurable product how to disable or redirect 302 pages? Thanks in advanced.
Surbhi Doshi's user avatar
0 votes
1 answer
529 views

How can I restrict SPECIFIC CMS pages from being seen by non logged in customers?

I found solutions for redirecting non logged in users to the login page for all CMS pages, but I only want to restrict a few CMS pages. How can I specify which pages to restrict? My code right now: ......
web master's user avatar
0 votes
0 answers
71 views

How to fix 404 error in Magento 2 without coding

I've deleted some old/discontinued products off the site, and this obviously gives rise to some 404s. How do I redirect these to a category page from the back end of Magento 2. Not a coder so can only ...
Priti's user avatar
  • 1
0 votes
0 answers
70 views

Redirect to /downloadable/customer/products after successful checkout automatically | Magento 2.4.1 CE

Cause we only sell downloadable products in our Magento 2.4.1 CE with Autoinvoice we would like to redirect our costumers automatically to the /downloadable/customer/products/ instead of the /checkout/...
Vikinger's user avatar
0 votes
1 answer
47 views

this error" Err_TOO_Many_Redirect" path is admin/noroute/denide?

this erro happend when user role change to denied.and whenwver you loggin to admin page it is redirect many times error.
Hardik Patel's user avatar
0 votes
0 answers
16 views

Mageto 2.3.4: What causes only a few category pages on the development site to redirect to the live?

We have a dev site which we use for testing any feature before it is deployed on the live server. A couple of category pages are found to redirect to the category pages on the live site. What causes ...
CodeForGood's user avatar
0 votes
3 answers
77 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: ...
Petey88's user avatar
  • 47
0 votes
3 answers
447 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, ...
Divya Sekar's user avatar
  • 1,421
0 votes
0 answers
65 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 ...
ItsJhonny's user avatar
  • 371
0 votes
0 answers
43 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 ...
web master's user avatar
0 votes
1 answer
942 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 ...
web master's user avatar
0 votes
1 answer
88 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:...
Praveen Negimani's user avatar
0 votes
1 answer
97 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 --...
Prasanth's user avatar
  • 147
0 votes
0 answers
438 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 ...
Sejal Shah's user avatar
  • 2,081
1 vote
2 answers
978 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/...
Arun Sharma's user avatar
  • 1,141
0 votes
1 answer
502 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 ...
Singleton's user avatar
0 votes
1 answer
243 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 ...
joeybab3's user avatar
  • 378
1 vote
1 answer
142 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/...
Shailesh's user avatar
  • 133
1 vote
2 answers
501 views

Getting error " Type Error occurred when creating object "

When i edit in constructor file of my custom module it give me this error " Type Error occurred when creating object " i don't know what i am doing wrong i use same code for creating a Block ...
Prits's user avatar
  • 626
0 votes
2 answers
267 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 ...
Tom's user avatar
  • 1
0 votes
1 answer
497 views

How to configure the 500 error page in magento 2

Is there a way to set up a custom 500 page error in magento 2? I tried to add a 500.phtml file in the pub/errors/default directory but this method only works with 404 errors and maintenance error 503. ...
Amine EL MOUDNI's user avatar
1 vote
1 answer
298 views

Magento 2 Mobile Menu - 2nd level redirect issue

The Magento 2 mobile menu is already fully expanded by default revealing all categories and subcategories which is a huge problem if you have a very deep menu structure. I have been able to make it ...
Jason's user avatar
  • 11
0 votes
1 answer
202 views

Magento 2 : Redirect customer to login page on email change

i want to redirect the customer to the login page when email id is changed from edit form ,i did below code Issues : 1: I am not getting redirected to login page, i can see message **Please Login now*...
user1799722's user avatar
2 votes
1 answer
454 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 ...
Jack Brooks's user avatar
0 votes
3 answers
2k 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 ...
djmzfKnm's user avatar
  • 159
0 votes
1 answer
182 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/...
Ajwad Syed's user avatar
  • 1,581
0 votes
0 answers
37 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, ...
Nico's user avatar
  • 1
0 votes
2 answers
231 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. ...
user355218's user avatar
0 votes
1 answer
203 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.
shogun james's user avatar
0 votes
0 answers
293 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 ...
manoj kumar's user avatar
0 votes
1 answer
43 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 ...
Magnetica's user avatar
0 votes
4 answers
633 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 ...
ann karsksya's user avatar
1 vote
1 answer
1k 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 ...
JACK's user avatar
  • 387
0 votes
2 answers
51 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?
Miguel's user avatar
  • 539
0 votes
1 answer
457 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 ...
ilija bradas's user avatar
0 votes
2 answers
2k 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 ...
Sayyed Hasan's user avatar
0 votes
1 answer
53 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 ...
user9432's user avatar
0 votes
0 answers
25 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
Anikesh Shahi's user avatar
0 votes
0 answers
332 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' =>...
ann karsksya's user avatar
2 votes
1 answer
157 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.
user avatar
0 votes
1 answer
129 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 ...
S Adamson's user avatar
  • 689
1 vote
3 answers
2k 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 ...
Matheus Prado's user avatar
2 votes
0 answers
287 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 ...
Sagar Parikh's user avatar
1 vote
2 answers
92 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://...
Anas Mansuri's user avatar
  • 2,617
1 vote
1 answer
318 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 ...
Ramesh R's user avatar
  • 141
0 votes
1 answer
1k views

Magento 2: How can a 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. ...
irshad's user avatar
  • 171
0 votes
1 answer
765 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 ...
Ramesh R's user avatar
  • 141
1 vote
1 answer
400 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=...
venkata prasad's user avatar

1
2
3 4 5
15