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.

233 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
4k views

Magento 2 with nginx throwing 404 error on setup

Can you please help me to solve the same problem.? I'm trying the magento 2 with nginx on my local environment. I'm getting a problem when trying to call my project for installation htttp://...
4
votes
0answers
44 views

Magento 2 : There is Different Class for When User Logs Out Due to Inactivity

I need to redirect customer to a different URL when is logged out automaticly. I made a prefence for Magento\Customer\Controller\Account\Logout but it looks like, when the customer is logged out due ...
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()) { $...
3
votes
1answer
89 views

Magento 2 - Clean SEO URL with attribute

We run Magento 2 - 2.1.6 Question: If I create a link based on layered navigation attributes (storeurl: /clothes?cat=1029&gender=124) for example. We get a lot of errors regarding Google Search ...
3
votes
1answer
38 views

How to show success messages on magento 2x home page externally redirect url?

In Magento 2.x form use in <iframe src="forms.netsuite.com "> after submitting from netsuite return/redirect to home-page-url/?whence= I need to show success message in home page: <div ...
3
votes
1answer
178 views

Magento 2: It does not redirect me correctly

I have different store views, one with code 'en' (this works) and one with code 'es_es' (this does not work and redirects me to the home). This is the condition that redirects: if ($result[0] == ...
3
votes
0answers
466 views

Magento 2 customer session setAfterAuthUrl() failed to set redirect URL

I have created custom module for custom blog wishlist. So I have set authentication while trying to save blog into wishlist as below Controller >> save.php public function execute() { $data = []; ...
3
votes
0answers
1k views

Magento 2: Same Event with Multiple Observer in Different Module causes redirection issue

Magento 2: Same Event with Multiple Observer in Different Module causes redirection issue To solve: Magento 2: Can we call one observer in another observer? I have followed below code magento\app\...
3
votes
1answer
475 views

How to log 404 or undefined url's path information in magento?

I want to log all urls which redirects to 404, for this I extended Mage_Cms_IndexController's noRoute action, here I can log all urls by Mage::log(Mage::helper('core/url')->getCurrentUrl()); Now ...
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
0answers
64 views

Google craws errors of links that don't, and Never existed

In the last couple of days I'm having trouble with Googlebot crawlers. I've experienced an increased of 404 links that don't exist, and have never existed. Trying to see the origin of these 404 ...
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.
2
votes
0answers
49 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 ...
2
votes
0answers
29 views

Magento 2.2.6 Product Pages Not Opening after upgrade

The product detail pages on my site are no longer opening after upgrading from magento 2.2 to 2.2.6 There are no error rather a catalog search results page is loading instead http://mydomain.co.uk/...
2
votes
0answers
43 views

www.domain.com/pub/ shows the web page without css/javascript loaded

I can access my site correctly like www.domain.com ( with all the content loads correctly), but if I type in www.domain.com/pub/ it is still accessible ( without js & css loaded). How do I fix ...
2
votes
1answer
668 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 ...
2
votes
1answer
22 views

When i click save and send test email it's redirecting to frontend

When i click save and send test email it's redirecting to frontendbaseurl/awfollowupemail_rules/edit/id/16/tab/followupemail_tabs_sendtest/key/f58025911cd3cb18f5d6683ab609c608/ but need to redirect ...
2
votes
0answers
1k views

Store Switcher redirect default store

I am having a problem with store switcher. I created two stores: English store and Arabic store When I switch the store English into Arabic, it redirects me to default English store. Here is my URL ...
2
votes
0answers
496 views

Magento 2 website redirecting constantly

I installed my new Magento2 page on the domain yesterday but I keep get an error that I cannot manage to solve. Where am I making a mistake. The page isn’t redirecting properly Firefox has ...
2
votes
0answers
463 views

Redirect to different store view according to IP Magento 2.1.9

I have a 2 website in 1 installation with 2 store views each. The store views are GBP and USA and the difference is just the price. I have manage to redirect each website properly using .htaccess. ...
2
votes
0answers
160 views

redirect htaccess from lowercase letters to uppercase magento using .htaccess

redirect htaccess lowercase to uppercase after http://example.com/catalogsearch/result/?q= From: http://example.com/catalogsearch/result/?q=apple To: http://example.com/catalogsearch/result/?q=...
2
votes
1answer
70 views

Some of url are redirected to https

I have install ssl on my site , Everything works fine on https but I want to use secure urls only for checkout and registration area pages. For that I have set base url to http://mydomain and Use ...
2
votes
0answers
63 views

Magento 2.0 - Multiple Simple Products redirecting to the same Configurable product in different Categories

I am not sure the best and cleanest way to do this, preferable from the admin panel. However, I sell different sports products with different teams. Right now, each team has it's own product page. ...
2
votes
0answers
494 views

Unable to refresh the page after generating PDF file in order grid

We have kept one button in mass action in orders grid, upon clicking it should generate a PDF file, which is working fine, but after generating PDF the should refresh automatically. That's we are ...
2
votes
2answers
476 views

ajax Customer register how to continue the process?

In my custom controller I am checking if customer is logged in or not.If not redirects to customer login page . public function customaddAction() { if(!Mage::helper('customer')->isLoggedIn()) ...
2
votes
1answer
969 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 ...
2
votes
1answer
704 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 ...
2
votes
1answer
35 views

admin panel not log in magento?

When I enter a wrong email/password, it says: Invalid User Name or Password. error. But correct email, password does not show any error and also does not redirect to dashboard. How do I resolve ...
2
votes
1answer
958 views

Magento 2.0 Add to wish list without redirect to wish list?

How to add a product to the wish list without triggering a redirect to the wish list? I have tried many times. Please suggest the code for me, my theme is default LUMA.
1
vote
0answers
13 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 ...
1
vote
1answer
93 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
2answers
40 views

Magento 2: How redirect from controller to another controller to POST method?

I am trying to redirect the customer when their store view is not correct. When I redirect the _request method it is GET and I need it to be POST if ($currentStore !== $customerStore) { $...
1
vote
0answers
25 views

Magento 2.2: Redirect to category page after add to cart

I am trying to redirect to the product category page, the process enters through the getCategoryUrl function but has never just redirected to the category. I have tried many functions and none is ...
1
vote
0answers
18 views

Infinite loop search page

While accessing the search url (http://localhost/mage2/catalogsearch/result/ or http://localhost/mage2/catalogsearch/result/index) infinite loop. Is it possible redirect to home page? Thanks.
1
vote
0answers
102 views

Magento 2 some urls redirected to specific store view

I have 2 websites and three store views set up in my mangento 2 : domain.nl domain.be domain.be/fr/ I dont know for some reason, some urls in front-end and back-end get redirected to domain.be/fr/. ...
1
vote
0answers
117 views

Redirect to cart page after place order success (Magento CE 2.3.1)

I am facing this issue too on Magento CE 2.3.1. I have put the log everywhere since the issue happened. I can see if using a payment method (currently using Cybersource SecureAcceptance) which will ...
1
vote
1answer
91 views

Nginx redirect for -only- homepage of old domain, to homepage of new domain

On the server.rewrites file within the nginx/ map, I have the following logic for redirecting the homepage of an old domain, to the homepage of a new domain: if ($http_host ~ ^(www\.)?olddomain.com ) ...
1
vote
0answers
39 views

301 redirect loop on category view

when I try to access a category page, I get the error ERR_TOO_MANY_REDIRECTS caused by 301 redirects. Also trying by not rewritten url (like "catalog/category/view/id/309"), the result is the same. ...
1
vote
0answers
41 views

How to parse session url from one store to another in Magento 1.9?

I have two stores. Store A - Showing products as a catalog, unable to buy. Store B - Able to buy for exclusive customers with a given login account. That I want to do is, create a button on store A ...
1
vote
1answer
307 views

How to redirect customer on custom page after registration in Magento 2

Here is my code customerregistersuceessobserver.php <?php namespace Webkul\Marketplace\Observer\Rewrite; use Webkul\Marketplace\Observer\CustomerRegisterSuccessObserver; use Magento\...
1
vote
0answers
18 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 ...
1
vote
0answers
30 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//
1
vote
0answers
78 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....
1
vote
0answers
148 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 ...
1
vote
2answers
380 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 ...
1
vote
0answers
21 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 ...
1
vote
0answers
29 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 ...
1
vote
1answer
491 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 ...

1
2 3 4 5