The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [redirect-url]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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, ...
0
votes
2answers
63 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 ...
1
vote
2answers
48 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-...
0
votes
1answer
25 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
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;
0
votes
0answers
27 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 ...
0
votes
0answers
57 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
2answers
42 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
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 ...
0
votes
0answers
16 views

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

I want to redirect customers to cart page after they login to 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 cart ...
1
vote
1answer
44 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
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
217 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
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
275 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
57 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 ...
4
votes
1answer
55 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 → ...
2
votes
0answers
71 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 ...
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 ...
0
votes
0answers
54 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
1answer
122 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
95 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 ...
2
votes
1answer
108 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
0answers
26 views

How to access data in the function that I am observing?

I created a plugin for Iways\PayPalPlus\Controller\Order\Create.php This is the function that I am observing. public function execute() { try { $cartId = $this->checkoutSession->...
4
votes
3answers
629 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
1answer
74 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/...
0
votes
2answers
111 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
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://...
1
vote
1answer
41 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 ...
2
votes
1answer
144 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/...
0
votes
2answers
264 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
360 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
17 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 ...
0
votes
0answers
122 views

Not redirecting depending on the storeview code

We have different store views: Spanish (es_es), French (fr_fr) and English (en). And we have a RMA extension where you can create them. Once you create a RMA you redirect to the same RMA page; we ...
2
votes
5answers
970 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
1
vote
2answers
138 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....
0
votes
1answer
545 views

How to add a parameter to 'request' when redirecting a page?

My code in Rooter.php: $this->_response->setRedirect('customer/account/create'); $request->setDispatched(true); $request->setParam('nickname', $request->getPathInfo()); return $this-&...
2
votes
1answer
240 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 ...
5
votes
5answers
4k 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 ...
0
votes
1answer
456 views

Redirect Magento2 404 page to the register page

I'm using Magento 2 to create my site. I want to dynamically assign a sponsor to the register of a new customer. I had create a customer custom field named nickname on the database. In practice I want ...
2
votes
2answers
241 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 ...
0
votes
1answer
192 views

How to do redirect in Magento 2

I want to redirect to specific page. I have created one script for testing but its not working. I am unable to redirect to another website url. try { require_once __DIR__ . '/app/bootstrap.php'; ...
0
votes
1answer
63 views

Redirect from /en/page.html to page.html

How can I automatically redirect custom pages from this URL site.com/en/page.html to this URL site.com/page.html In order to avoid problems with Google Search Console?
0
votes
1answer
930 views

Magento 2 - URLs trailing slash redirection programmatically

I want to redirect automatically any url that comes as example.com/ to example.com or example.com/men/ to example.com/men Could someone point me to the right direction. I do not want to modify ...
0
votes
1answer
122 views

controller redirect url with language

I have a multi language web, and I need to redirect from the controller to the actual language of the web. So $this->_redirectURL('/foo/'); now is redirecting to example.com/foo/ but I need to ...
0
votes
2answers
442 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
2answers
288 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="...