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

Want to show the Stores based on countries

I need to show the stores name like saudi / oman / dubai. Each stores have two store views (Arbic & English). I want to display these Stores according to their countries. For Example Saudi ...
Ask Xah's user avatar
  • 512
1 vote
2 answers
2k views

301 Redirect Multiple Url using .htaccess Magento 2

I'm trying to 301 redirect multiple urls to new url. Using .htaccess File. What changes i have to make in .htaccess
Ronak Rathod's user avatar
  • 6,023
0 votes
0 answers
159 views

Admin panel lookweird because of the many redirects in Magento 2.3

I am not getting a normal admin screen. Looking with console I am getting these errors: (index):30 GET https://www.bakmans.nl/pub/static/adminhtml/Magento/backend/en_US/requirejs-config.js net::...
Peter Vis's user avatar
1 vote
1 answer
44 views

Magento 2.1.8 dev site catalog search and products listing redirecting to live site

I have setup my magento 2.1.8 EE live site on staging for development. The homepage, admin and cms pages are working fine. But my prduct pages are redirecting to live site and catalog search also ...
chanchal's user avatar
  • 397
2 votes
2 answers
2k 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\...
jafar pinjar's user avatar
  • 1,839
1 vote
0 answers
35 views

Redirect home page with example.com// in magento 2

Hello I just Moved My Website and I am getting Error in home page page is not redirect properly Home page is open with 2 slash www.example.com//
Pranav Patel's user avatar
3 votes
1 answer
572 views

Referrer URL in modal login form

I currently have a login form which opens when a customer clicks a link in the header (instead of going off to /customer/login). Apart from a few field ID's, it's pretty much unchanged from customer/...
Thomas Harding's user avatar
1 vote
0 answers
291 views

Magento 2 - how do i redirect "mydomain/pub" and "mydomain/pub/media" path to homepage?

I'm trying to redirect "mydomain.com/pub" and "www.mydomain.com/pub/media" to homepage (mydomain.com). Currently, "mydomain.com/pub" path shows the homepage with no css and js loaded, and "www....
Mage Explorer's user avatar
1 vote
1 answer
181 views

Product gets wrong url on product page

The product im having problems with has the url: 1-troy-ounce-silver-maple-leaf-6 in the backend the product has the URL key: 1-troy-ounce-palladium-maple-leaf The product needs to have the URL key ...
Wouter Stulp's user avatar
0 votes
0 answers
31 views

How to restrict navigating to other page from a customer magento page

I am working on a module that implements two factor authentication. I have created an observer to the event customer_login , so just after when the customer has logged in, they are directed to a ...
Sidharth Satheesh's user avatar
2 votes
0 answers
300 views

Failed Payment Redirect in Magento 2

When a customer has an order canceled due to their credit card being declined it seems all extensions redirect customers back to the cart page and not the actual payment page in the checkout. Is this ...
Goose84's user avatar
  • 2,529
0 votes
0 answers
48 views

Best Seller Block (links not working) - Magento 2.2

Here i need to solve some issue where, When i click on the product image (BLUE CIRCLE), in the Best seller block, we are redirected towards the Home Page Similarly, when the name of the product is ...
rajk53's user avatar
  • 1
0 votes
1 answer
1k views

Rewrite rule for media images

we need to set rewrite rule for some images in Magento 2.2.5 using .htaccess rules or nginx conf Example 1 Request Path: https://www.example.com//media/catalog/product/cache/1/thumbnail/543x403/...
Knight017's user avatar
  • 612
0 votes
1 answer
575 views

How to redirect to shop after logged in user in Magento 2

public function execute() { if ($this->session->isLoggedIn() || !$this->formKeyValidator->validate($this->getRequest())) { /** @var \Magento\Framework\Controller\Result\...
prabhakaran7's user avatar
  • 1,057
1 vote
2 answers
1k views

Magento 2: Can I response with a redirect on REST API?

I have an API endpoint that expects a GET request. On some scenarios, I want to be able to perform a redirect instead of responding with a result. e.g., If you'll open the API endpoint URL in a ...
Pini's user avatar
  • 907
0 votes
1 answer
360 views

How to break a event flow form an Observer and redirect to the same page in Magento 2?

How can I break a flow when some condition is true? Let's say the customer is writing a review for the product https://url/review/product/post/id/2/ and when the user presses the save butto some ...
IgorAlves's user avatar
  • 189
0 votes
3 answers
112 views

Magento 1 Redirect only works once, works again after refreshing cache

I want to add a simple redirect if a customer is not logged in when trying to access one of my categories. Now, I have created a test.phtml file and added it in my theme page/test.phtml with ...
Greg's user avatar
  • 2,889
0 votes
1 answer
53 views

Custom customer logged in redirect in front instead account

I'm making a Facebook connect module. It add a button "facebook connect" in the logged in form and when the user log with it, it send the form with a token added in the fields. To do that i create a ...
Kpone's user avatar
  • 371
0 votes
1 answer
37 views

When hit the home page url, it shows contact us page as home page

I am facing a very unusual scenario for my web site. (https://zitomer.com) When we try to access homepage https://zitomer.com it displays contact us page as a homepage. What will be the issue? I am ...
1990rk4's user avatar
  • 573
0 votes
1 answer
33 views

Who can help, why the redirect does't work when the product is added to the cart?

Redirecttohome.php namespace namespace\modul\Observer; use Magento\Framework\Event\Observer; class RedirectToHome implements \Magento\Framework\Event\ObserverInterface { protected $...
Robinio's user avatar
  • 749
0 votes
0 answers
72 views

Magento adding conditions on catalog price rules causes ERR_TOO_MANY_REDIRECTS

I am using Magento 2.3 installed via CPanel from hosting I am trying to create a catalog price rule, when I click on condition and selects Catalog it takes time to load then displays an error I ...
Ahmad Saleh's user avatar
0 votes
1 answer
2k views

Controller redirect on jquery post request from phtml template

I want to redirect user on button click from .phtml template file, however, really struggle to find a working solution. Here is my controller with path of /batchorder/index/addtocart: public ...
Greg's user avatar
  • 2,889
0 votes
1 answer
2k views

Magento 2 controller redirect on button click in phtml file

I want to redirect customer using controller when button is clicked in one of my phtml files. So far I got, controller: public function execute(){ return $this->addToCart(); } public ...
Greg's user avatar
  • 2,889
3 votes
2 answers
8k views

Magento 2 redirect to external URL from controller

I want to redirect to a external URL in my controller but not in the execute() function. This code works fine and the result is a redirect to google: public function execute() { $resultRedirect =...
Greg's user avatar
  • 2,889
1 vote
0 answers
35 views

admin url redirects to customer view page in magento2.3

I am a beginner to magento. I am currently using magento version 2.3 and http://localhost/myproject/admin url redirects to customer view page instead of appearance of admin login form. Thank you in ...
user76252's user avatar
1 vote
0 answers
64 views

External URL post redirect without intermediate page (white page) in Magento 1.9.x

Is there any possibility from the shop-system to perform a post redirection while clicking on the 'Place Order' button? We have tried posting the form data using the function getOrderPlaceRedirectUrl ...
Prakash K's user avatar
0 votes
1 answer
236 views

Magento 2.2.2 : Redirect not working from plugin

di.xml <type name="Magento\Framework\AppInterface"> <plugin sortOrder="1" name="noroute_redirect" type="Namespace\ModuleName\Plugin\AppInterfacePlugin"/> </type> ...
Slimshadddyyy's user avatar
1 vote
2 answers
2k views

skip function execution using before plugin

I'm overriding the controller Magento\User\Controller\Adminhtml\User\Validate::execute() using before-plugin so I can perform some checks before magento validate using this function. If certain ...
Muhammad Saeed Khan's user avatar
0 votes
1 answer
363 views

Redirect from around plugin in Magento 2

How to redirect from around plugin to another page with an error ?
gajjala sandeep's user avatar
0 votes
0 answers
747 views

Magento2 : Why I'm redirect to Empty Cart After Checkout?

I am running Magento 2.2.6. I noticed my analytics data seemed off so I went in and checked and I am only receiving about 50% of my transactions. I can see the transaction id so I have compared the ...
tjjen's user avatar
  • 873
0 votes
1 answer
207 views

Magmi Keeps Asking for Login

I use Magmi with Magento 1.9 for a few years now. All of a sudden, no matter what I do, press “run” or “save profile”, Magmi sends me to the login page. Help anyone? Thanks
liaroro's user avatar
1 vote
1 answer
61 views

How to redirect to particular stores when the site opens

My website has 2 stores there are two different store codes for that the first is us and the second is ms when I enter mysite.com then it redirects to mysite.com/us but I want to change it to ...
Smita Kagwade's user avatar
0 votes
1 answer
1k views

Magento 2 - Load Balancer - Health Check Failing - 302 redirect

I am having an issue with my load balancer health checks. It is attempting to access the server hosting the Magento 2 site. When I curl the IP address of the machine I get the following Response ...
Shawn Northrop's user avatar
0 votes
2 answers
3k views

Redirect from Controller

In my controller BVZ\Customer\Controller\Index I'm doing a redirect using return $this->_redirect('customer/index/firstAccess'); When the code execute, the request are made (see the print below) ...
Gabriel Fernandes's user avatar
0 votes
1 answer
118 views

Magento 1.9 create log for no-route

Is there anyway I can force Magento to create a log file that contains the offending script path that is causing a redirect to no-route?
hejhog's user avatar
  • 332
0 votes
1 answer
375 views

Magento 2.1 redirects in Observer after payment

I'm creating a payment method gateway, that requires after place order in the frontend, redirects to the custom controller that I've created. I created an observer sales_order_payment_place_end to ...
mty95's user avatar
  • 21
0 votes
0 answers
1k views

Customer redirect issue with login post plugin magento2

I have used two plugins to use the referral url's for customer login page. here is the code of my etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin ...
jafar pinjar's user avatar
  • 1,839
4 votes
3 answers
683 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 ...
Ramesh KR's user avatar
  • 826
1 vote
1 answer
2k views

url rewrite with wildcard possible with magento 2.x default set-up?

I want to use wildcards for url redirects in Magento 2.x with basic Magento set-up. Whenever I add it, either via Import upload or manually added they do not work. Does anyone know if adding wildcards ...
Oleg's user avatar
  • 239
7 votes
3 answers
341 views

Update: Magento 1 checkout account create redirect, SUPEE-10570v2 and Magento 1.9.3.9

We currently have a strange problem on our Magento 1.9.3.9 shop. When someone fills in the password fields in the checkout, to create an account. In that case when clicking the place order button on ...
JGeer's user avatar
  • 1,446
0 votes
1 answer
21 views

URL re-written with a -1

https://theidleman.com/brands/carhartt-1.html has been generated in addition to our old https://theidleman.com/brands/carhartt.html URL - how can I delete the '-1' and redirect it if the '-1' does not ...
Emma James's user avatar
0 votes
1 answer
117 views

Magento 1.9 - Observer Event redirection issue after placing order

This is my xml : <global> <events> <sales_order_place_after> <observers> <test_magewidget_model_observer> <...
Mr. Nanhe's user avatar
  • 129
0 votes
1 answer
516 views

No Forward Slash on URL redirects back to Homepage

We've got a strange issue with a Magento 1.9 install where any page that you try and navigate to that doesn't have a slash on the end of the URL is automatically redirect back to the homepage. Our ...
WebDevB's user avatar
  • 215
0 votes
3 answers
1k views

Customer redirect issue with plugin method magento2

I have used below code to write plugin method for loginPost controller. this is the code of etc/di.xml <type name="Magento\Customer\Controller\Account\LoginPost"> <plugin name="...
jafar pinjar's user avatar
  • 1,839
0 votes
2 answers
2k views

Magento keeps redirecting to main domain

We have two domains, one for the german shop and one for the shop in switzerland. The urls are like: www.mycompany.de and www.mycompany.ch But if I open www.mycompany.ch then I get redirected to ...
Black's user avatar
  • 2,993
1 vote
0 answers
292 views

Magento 2: Redirect to backend customer list from frontend

I'm trying to create a menu to redirect to the client list in the backend. The menu is: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="...
chdzma's user avatar
  • 951
1 vote
1 answer
686 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 ...
albertovalerio's user avatar
1 vote
1 answer
2k views

magento 2.2.5 turn back to home when i change store view

i've an issue on magento 2.2.5. I've created two store view it/en, when I'm on product page and change store view from it to en and vice versa, I'm redirected to the home page. Someone can help me? ...
Antonio's user avatar
  • 83
2 votes
2 answers
12k views

magento 2 redirect url with parameters from controller

I am trying to redirect to a different controller from one controller . I also want to set an Url parameter along with the redirect. But this is throwing me an error Uncaught Error: Call to ...
Melvin's user avatar
  • 43
2 votes
2 answers
1k views

Magento 2 - CMS Block redirection to url

I would like to be able to redirect to a url when the user clicks the category. I have this menu, with the News category. This category loads a CMS Block: And only having a script which redirects me ...
Raül's user avatar
  • 780

1 2 3
4
5
15