Questions tagged [redirect-url]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
1answer
1k views

Redirect to external url after order creation

I am making a payment gateway and I need to redirect from the invoice page to an external url. Basically when an order is created at Magento I create an order in a 3rd party app with curl, then I get ...
7
votes
4answers
6k views

Magento2: Re-direct to custom URL from observer

My requirement is that if a customer visits website from country India they should be redirected to indian website www.example.com/in/ . In all other cases it should be default website only. I'm ...
6
votes
2answers
5k views

Magento 2: Maintenance Mode

I've configured Magento 2 website as maintenance mode from .maintenance.flag it's working, at the same time I have configured released IPs from .maintenance.ip file. For multiple IPs not working ...
5
votes
5answers
3k views

Redirect from plugin Magento 2

I am trying to redirect to custom URL by using plugin feature of Magento 2 but somehow I am not able to redirect it. For this, I tried a couple of options like, Magento2: redirection from Observer ...
5
votes
3answers
2k views

Show product of a category in a custom page

I create a category with some product. Also create a custom layout for my page that I add new cms page with this layout that I created. I need to have this page with my layout because I want to add ...
4
votes
3answers
626 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. I hope will get ...
4
votes
1answer
52 views

How to make Dynamic URL for Browser and Mobile Application - for Customer Confirmation mail URL?

Magento 2 gives us the ability to take more control of the customer account creation process. There is a special configuration setting located in Admin under Stores → Configuration → Customers → ...
3
votes
3answers
25k views

Redirect to home page in Controller

I want to redirect my site to home page (base URL) in Controller. $this->_redirect(); Using above mentioned function gives me the warning to specify the argument. Warning: Missing argument 1 ...
3
votes
2answers
353 views

Malware Attack On Magento 1.9.2

My website www.antiqworld.com whenever i am trying to open my website automatically redirect on (https://20.unverf.com/?h=230916016_ee5d07ec7ec_98__def_sub__sub_id_2&cnv=1) this url please help ...
3
votes
3answers
3k views

Magento 2: Bulk 301 rewrite imports

Read this great reference for creating a csv for import but this was for Magento 1 and it states you only need store_id, id_path,request_path, target_path, options but these headers won't work for ...
3
votes
2answers
726 views

Magento 2 : How to redirect from a observer without exit or die (as it's not allowed by magento standards)

I know of a couple of ways of redirecting to a given URL in observer but all of them uses exit or die and they would not work without it. So, if someone knows of a way of doing it without using exit ...
3
votes
4answers
2k views

Is it possible to redirect the Magento 2 Contact Form without a custom module?

I'm trying to get the Magento 2 Contact form to redirect not to /contact/index but someplace else. Here is what I have so far: We use a custom theme, in which I have created a the following folders ...
3
votes
0answers
31 views

404 in home page when open incognito Magento 1.9

I have an issue that I got 404 page when open the store in incognito mode but for the regular page in the browser it works fine because it is already cashed before. Also when I tried to open any ...
3
votes
2answers
217 views

Magento 2 : How to avoid 302 status code, actually Referrer URL returns 302 status code?

If anyone have idea please guide me, below is my code: <?php use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Magento\Framework\Controller\...
2
votes
2answers
236 views

Setting my base_url to Secure

Setting my base_url to HTTPS drops the query string I set the base URL for my site to https://www.example.com, now when user comes to my site from a non secure URL (link) that has a query at the end ...
2
votes
5answers
908 views

How to remove index.php from url if we enter manually

How to remove index.php when we enter manually in the URL My store path is /var/www/html/testfolder/ Thanks
2
votes
1answer
602 views

Magento 2 checkout page redirection

I want to redirect the 'proceed to checkout' action in mini cart to a custom page. I can't set the new link in mini cart button. http://i.prntscr.com/ZGS7nessQsSMlbjZHSFj0Q.png
2
votes
1answer
432 views

How can I prevent a redirect via custom controller?

I have a custom form with an action that calls my module controller, I would like to prevent the redirect and stay on the page where the form is submitted but when I try to add a wildcard in my ...
2
votes
1answer
107 views

Url redirection Help for magento 2

I need some help for url redirection in Magento 2. I want to show my own url in the address bar but the page should be from another url. For example, if the link is www.xyz.com/blog/post/post.html, ...
2
votes
1answer
140 views

Magento2: How to redirect to payment section checkout?

I am trying add code for redirect $this->resultRedirect->setPath('checkout/index/index#payment'); but some reason its take slash at the end of url so url become www.demo.com/checkout/index/...
2
votes
1answer
222 views

How to use _redirect() method in Magento 2 model file

Magento\Framework\App\Action Redirect method is defined in Magento controller interface /** * @var \Magento\Framework\App\Response\RedirectInterface */ protected $_redirect; So i am aware about ...
2
votes
1answer
704 views

How Redirect to 3rd party payment gateway in Magento2?

In Magento 1 we define the getOrderPlaceRedirectUrl in the model which extends Mage_Payment_Model_Method_Abstract and redirect to a particular controller after checkout submit. Then from the ...
2
votes
1answer
35 views

Using getUrlPath in Magento 2.2.7 - URL Redirect

I have this script working on Magento 1.9 but can't figure out how to use it for Magento 2.2.7. <?php require_once 'app/Mage.php'; $sku = $_GET['sku']; $store = Mage::app()->getStore(); $path = ...
2
votes
1answer
174 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
49 views

Remove '.php' from url redirect [closed]

I have an URL like: base_url/cloths/mens.php now when we click on this above URL then it should redirect to: base_url/wp/cloths/mens/ here we want to remove .php extension from URL after ...
2
votes
0answers
62 views

Magento 1.9 rewrite/redirect issue

Magento is redirecting to the wrong url. Checked htaccess as I thought there is a problem but not, there is no redirect for this url. So I've checked rewrite table but there is no obvious cause. For ...
2
votes
0answers
307 views

Change redirect url based on store id

I create an observer for controller_action_predispatch in frontend to redirect site to particular store url like this: public function execute( \Magento\Framework\Event\Observer $observer ...
2
votes
0answers
74 views

Magento 1.7 redirecting URLs when URL rewrite table empty and non in htaccess?

Im just cleaning up my site and sorting out all the 404s in webmaster tools. To fix the 404s I was just putting in a manual 301 in the htaccess file like this. Redirect 301 /football-rebounders/spot-...
2
votes
0answers
944 views

Magento + gclid + redirect is not working

I've just been on the phone with Adwords and they've told me my gclid url query string is not working properly. So I did some digging and found this stackexchange question / answer that really looks ...
1
vote
1answer
6k views

Redirecting HTTP to HTTPS?

I've read into this quite a bit but can't seem to find a solution. I'm trying to set it so whenever someone visits a link for my site (and for whatever reason they don't include https it redirects to ...
1
vote
1answer
599 views

Magento 2.1.8 : Redirect to localhost for admin URL after update

After a update I can not login anymore to the admin backend. I had this issue several times after an update but until now could resolve it with the common tips (wipe static data, cleaup all caches, ...
1
vote
1answer
37 views

how can i change all urls of old website

i just remove my website from hmsaver.com to homemarket.ae now every thing is working but i want to ask is that possible if any visitor came from google to hmsaver.com and he redirect with same url to ...
1
vote
2answers
1k views

Redirection after login to another page is not working for server + Chrome issue

I have set previous URL like below in controller Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mage::helper('core/url')->getCurrentUrl()); After login, it will be redirect to ...
1
vote
1answer
256 views

Get category url from custom category attribute

I have tried to redirect customer to a certain category after successful registration however I couldn't achieve it (even with the help in here, still didn't work stackexchange question)so I changed ...
1
vote
1answer
1k views

Wrong redirection of url [closed]

Magento redirecting the page url to the home page when i am clicking from outside. if you click here ,it will redirect to home page the link is http://whiteboardsnz.com/porcelain-whiteboards-3.html ...
1
vote
1answer
352 views

Sales order email sending concept

Magento with Desjardins payment gateway. I have noticed that my sales order email is sending well with other payment method but with Desjardins payment gateway its not. I worried bit and checked the ...
1
vote
2answers
39 views

Redirecting to different URL's after restoring the site on local

We have a development server to test our code changes before pushing them to live. Recently, we have restored the development server to local (xampp) for testing and also done the necessary changes to ...
1
vote
1answer
35 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
2answers
275 views

Observer redirected too many times

I have set a pre-dispatch observer like this: \etc\frontend\events.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
1
vote
1answer
2k views

Magento 2 : Add to Cart Button redirect to contact page

I am using Magento 2, How to redirect to contact us page when adding a product to add to cart?
1
vote
1answer
919 views

Redirect to specific controller from observer without changing my current browser Url

I had written a observer to trap product view page event and it is working fine.Now in that code i want to call a controller and pass the product id in it and render the custom view.phtml file, so how ...
1
vote
2answers
684 views

Magento makes 307 redirect to HTTPS instead of 301

I have set my whole frontend to use HTTPS. But in the headers I see that if I go to http://example.com Magento redirects me to the HTTPS version using 307 redirect. I tried to change this by setting ...
1
vote
2answers
47 views

magento 2.3 redirect all product urls without category path to urls with category path

I want to redirect all product URLs without a category path to their category path URLs for SEO purposes. Example - Redirect mywebsite.com/product-name.html to mywebsite.com/category1/sub-...
1
vote
3answers
36 views

How to redirect page to cms page ie.(carrer.html) via controller file?

Mage::getSingleton('core/session')->addSuccess('Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.'); $this->_redirect('*/*/'); return;
1
vote
0answers
35 views

Magento 2 new instance redirecting to staging site

I have my magento 2 staging site setup in folder staging and on url stagingexample.com , I have created a new folder newSetup in staging folder and setup copy of staging site in newSetup. I want to ...
1
vote
1answer
19 views

Search product will give nothing in magento1.9

I am facing an issue that whenever I searched a sku (the attribute is searchable - yes), no result found. My catalogsearch_query has Null for that query string "redirect" column. https://prnt.sc/...
1
vote
1answer
40 views

Magento 1.7.0.2 : How to redirect home page with specific account

I am kindda new with magento 1, so here is what i don't understand. In admin, configuration is look like this: So what i care about is Default Web URL and CMS Home Page, So i dont understand about ...
1
vote
0answers
16 views

magento 1.9 have issue with URL Rewrite Management and backlink from the same domain

I have a jewellery store site "finestgold.ca/store", there are approx 800 products, but in the URL Rewrite section it is showing "41701 records found" do I need to worry about site SEO ? if that much ...
1
vote
2answers
135 views

How can i Redirect my sub-domain by new Domain?

I have a website called xyz.com and added additional store called abc.xyz.com. Now I have purchased new domain 123.com. How can I redirect my subdomain as a new domain, like if customer enter 123....
1
vote
1answer
76 views

How to redirect users to custom link when user access any link?

I implemented OTP integration. Now in table 'otpp' I have column 'verified'='0' when user doesn't verify OTP and 'verified'='1' if user verified. So I need to redirect to otp verification page when '...