Questions tagged [redirect-url]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
46 views

Magento 2.3: Forward to another URL without redirecting

I'm writing a module that will accept any Magento URL with /discount/COUPON_CODE appended to the end, set the code in a cookie for later use, and then forward to the URL minus the discount part. So, ...
0
votes
0answers
19 views

Magento 1.9 Header links as drop-down link not working

My header link like, new look, If i choose any link from drop down option it is not redirect to dedicated page, code : app\design\frontend\default\theme327k\template\page\template\links.phtml <...
1
vote
2answers
49 views

Magento 2: URL Rewrite by custom router URL

I am using Magento version 2.2.6 I have already tried with Marketing >> URL Rewrite >> Add New URL Rewrite add custom URL but not working when we use it with question mark in URL, it's ...
0
votes
0answers
11 views

Magento 2 : where in core handle function permanent url

where in core handle function permanent url Any help? Thank in advance.
3
votes
1answer
38 views

Magento 2 View cart from abandoned cart email auto redirect to cart after login

I want to redirect customers to cart page once they login to the site from the abandoned cart email. There is a way to set redirect after login is successful but i want redirect to happen only when ...
0
votes
0answers
19 views

Magento 2 - ERR_TOO_MANY_REDIRECTS on Frontend - Sporadic

I am facing an issue where the storefront throws ERR_TOO_MANY_REDIRECTS error once or twice a day. It does not follow any specific time pattern. To fix this, all we are doing is to just refresh FPC ...
0
votes
0answers
65 views

redirection from payment gateway to website make empty cart

We are using Paytm extension in our client's website https://www.safaribags.com which builds on Magento 2.1 When customers click on "Pay with Paytm" button, the customer redirects to the Paytm Pay ...
1
vote
1answer
884 views

Magento Payment successful redirect issue

In my site I have issue in payment redirect URL. It works fine in Google Chrome but it redirects to empty cart page in Firefox. When I clicked on place order button, I redirect on Payment gateway ...
2
votes
0answers
17 views

Magento2 custom referer URL redirects to correct URL but again redirects to My Account in few seconds

I have created a custom URL with referer like this: use Magento\Framework\UrlInterface; use Magento\Framework\View\Element\Template; public function __construct( Template\Context $context, ...
1
vote
2answers
60 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-...
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 ...
0
votes
2answers
145 views

Magento 2 Redirect shopping cart link on message notification in iframe

I can not redirect to the shopping cart link outside the iframe. It still redirect but it stays in the iframe. magento 2.2.6 when i click shopping cart result : I want it redirect to shopping cart ...
0
votes
2answers
91 views

Redirect all pages to homepage via .htaccess except backend

I've been trying to redirect all pages of my Magento website to homepage via .htaccess - except the backend, naturally. Currently, I'm using these rules and everything is working fine so far but I ...
3
votes
2answers
790 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 ...
0
votes
1answer
27 views

UrlRewite one website to another?

Is it possible in magento to redirect existing site one page to another website? Like. http://magento-website/demo to http://magento-website-2/demo Without using htaccess and php header function. ...
1
vote
3answers
38 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;
0
votes
0answers
34 views

Magento2 problem with redirect. Page work without www but with www i've got “The page isn’t redirecting properly”

As in title when I enter to page http://example.com everything fine but when I type http://www.example.com I've got a message "The page isn’t redirecting properly". I try to change base_url and ...
2
votes
2answers
48 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 ...
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 ...
1
vote
0answers
37 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 ...
2
votes
1answer
153 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/...
4
votes
1answer
62 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 → ...
0
votes
2answers
465 views

Magento2 custom redirection is not working

I tried below code but page is not redirecting $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $redirect = $objectManager->get('\Magento\Framework\App\Response\Http'); $...
1
vote
1answer
628 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
66 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 ...
0
votes
2answers
524 views

Different category URLs for store views, redirect to proper one

I would like to have different URL keys for a category for every store view. ex http://store.com/electronics.html for EN store http://store.com/electronics-gr.html for a GR view. When i switch ...
0
votes
0answers
35 views

Magento2 url issue

My magento2 website in following url to be show catalog/product/view/id/9583 but i need like powder-9583.html so what step we required to achieve this. and also search engine is on on ...
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
318 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\...
3
votes
0answers
33 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
410 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
1answer
70 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
1answer
732 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
0answers
84 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 ...
1
vote
1answer
43 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 ...
0
votes
0answers
58 views

Magento homepage redirects to 404 page not found

After reindexing, when entering the homepage url, I'm redirected to 404 page not found. I have checked configuration/general/web and everything seems to be working there.
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 ...
1
vote
1answer
21 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/...
0
votes
0answers
15 views

Many categories are throwing a 404 - at a loss on how to investigate further

I learned today that our website was throwing 404s on many of our category pages. The only process that I think that could have triggered this was the execution of magerun index:reindex:all which had ...
2
votes
1answer
114 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, ...
0
votes
2answers
442 views

Redirect to product page from observer

There is one link on my product page. If the customer is not login than its ask for customer login in the popup and after login, I want to redirect that product page. So, I am using customer_login ...
0
votes
1answer
129 views

Adding Custom massAction to Orders Grid in Magento 2

I added the custom massAction to Orders List and it's executing my massAction method but it's redirecting to dashboard. for these I have written below code. protected function massAction(...
0
votes
1answer
112 views

Get second last url in Magento 1.9

How can we get the second last url in Magento 1.9? I currently use this: <?php echo Mage::getSingleton('core/session')->getLastUrl();?> To get the last URL. But I want to get the second ...
3
votes
4answers
3k 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 ...
0
votes
1answer
75 views

Rewrite Rules to revert URL structure?

I've got a site which at some point in the past used SEO friendly category pagination for example : category/subcategory/40.html category/subcategory/4.html category/subcategory/15.html category/...
4
votes
3answers
633 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 ...
0
votes
0answers
47 views

Store switch is not working for custom categories

I have added a categories and called that through CMS block. When I go to that category from homepage it is going fine. After that if I try to change the language,it is not accpeting. say: http://...
0
votes
2answers
283 views

Can I use same URL key for both the Product and Category?

I'm facing an issue with redirecting the Category page. We are using the same URL key for both the Category and Product. When I click the link which should be redirected to Category but it's not doing ...
3
votes
2answers
391 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 ...
1
vote
0answers
18 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 ...