Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
17 views

Redirected automatically to a store view based on a user group - M2

I have created two store views, one for my normal customers (group) and one for my wholesale customers (group). I need that when a Wholesale customer login will be redirected automatically to the view ...
0
votes
1answer
23 views

How to redirect subdomain to subdomain?

I have a question for config url rewrite on .htaccess file. On my store have two language is English and German. I setup English with domain main.cocal and German is de.main.local. so for now I want ...
0
votes
0answers
14 views

Change hostname on my server

I changed my site hostname of my server and now it doesn't work. I used the next command sysctl kernel.hostname=new_hostname and now it throws an error that the page is redirecting many times. ...
2
votes
0answers
32 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 ...
0
votes
0answers
13 views

How can i do absolute path redirect on magento

How can I do in magento 2.2.4 modify the full URL? I want to do a 301 redirect I mean I want to redirect the following URL for example https://google.com/US and the redirect is https://googleguest....
0
votes
0answers
17 views

I can't get rid of the page URL key in my store homepage

Concisely, my store homepage shows the URL key "/home" and I can't get rid of it. If I browse the store root "www.website.tld/" I get an error "Too many redirects". I have already checked almost ...
0
votes
1answer
31 views

Magento2.3: Order not Place and Redirect to checkout/cart page [closed]

I have upload my Magento2.3 site on site ground. Others things are working fine but order not place redirect to checkout cart page. system.log: [2019-04-19 12:15:47] main.INFO: Broken reference: ...
1
vote
1answer
22 views

Redirect 301 removing parameters in URL by .htaccess

In the file .htaccess in magento, I want to redirect a url with parameters. An example is this: https://example.com/presente/decoracao/teu-sorriso?PageSpeed=noscript I need to redirect this to the ...
1
vote
1answer
45 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\...
0
votes
0answers
22 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 ...
2
votes
2answers
90 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
0
votes
0answers
38 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::...
1
vote
0answers
17 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 ...
0
votes
0answers
26 views

User redirected to frontend front page when saving in admin or continuing to payment service

We have Magento 1.9.3.8 installed and these two things seem to happen randomly during any day: In admin saving product data redirects to frontend's front page. In front end when user is making an ...
2
votes
1answer
61 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\...
0
votes
0answers
32 views

How command pool works? and How can we redirect to payment gateway? Magento 2

I'm integrating a payment gateway using gateway command pool. This is di.xml <virtualType name="AuthorizeCommand" type="Magento\Payment\Gateway\Command\GatewayCommand"> <arguments> ...
1
vote
0answers
22 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//
3
votes
1answer
32 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/...
1
vote
0answers
36 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
1answer
24 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 ...
0
votes
0answers
20 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 ...
1
vote
0answers
47 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 ...
0
votes
0answers
20 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 ...
0
votes
1answer
83 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/...
0
votes
1answer
40 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\...
1
vote
1answer
40 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 ...
0
votes
1answer
27 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 ...
0
votes
3answers
46 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 ...
0
votes
1answer
20 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 ...
0
votes
1answer
30 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 ...
0
votes
1answer
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 $...
0
votes
0answers
12 views

How to redirect the customer to the same store he has last used when he click on a button in email?

I have a button in my email called "Shop". once the email is sent to the customer if he clicks on the "shop" button it will redirect to the same store from where he has last used. How to do this.
0
votes
0answers
12 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 ...
0
votes
1answer
138 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 ...
0
votes
1answer
125 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 ...
1
vote
2answers
560 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 =...
0
votes
0answers
15 views

Controller Redirect Returning HTML and not actually redirecting

I have made a simple test controller, that should just redirect the user to the checkout/cart page when it is hit. After reading a number of different tutorials online and viewing countless Magento ...
0
votes
0answers
29 views

Show Messages from Message Manger after Redirect

I am currently using the message manager to display a series of messages from my controller. $this->_messageManager->addSuccessMessage(__("All requested products have been added to the cart."));...
1
vote
0answers
18 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
21 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 ...
0
votes
1answer
33 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> ...
0
votes
1answer
51 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 ...
0
votes
0answers
35 views

Magento 2 redirect to localhost

Magento 2 redirect to localhost I have install magento 2 on ubuntu in virtual box. and I have forward the port from host machine to virtual machine. but when I try to access magento it redirect to ...
0
votes
1answer
24 views

Redirect from around plugin in Magento 2

How to redirect from around plugin to another page with an error ?
0
votes
0answers
192 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 ...
0
votes
1answer
72 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
1
vote
1answer
45 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 ...
0
votes
1answer
222 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 ...
0
votes
2answers
78 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) ...
0
votes
1answer
36 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?