Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [redirect-url]

The tag has no usage guidance.

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
3 answers
3k 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 ...
Elham Gdz's user avatar
  • 605
3 votes
0 answers
205 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, ...
Narendra Vyas's user avatar
3 votes
2 answers
2k 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\...
Jafar Pinjar's user avatar
  • 1,939
3 votes
0 answers
59 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 ...
Elghazoly's user avatar
2 votes
1 answer
218 views

Need to redirect to given controller

I need to redirect to ('hello/Test/Customer') page but observer is not working. <?php namespace SimpleMagento\Custom\Observer; use Magento\Framework\Event\Observer; use Magento\Framework\Event\...
Akash Killedar's user avatar
2 votes
2 answers
1k 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-...
chanchal's user avatar
  • 417
2 votes
0 answers
212 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 ...
Rob D. A.'s user avatar
  • 867
2 votes
0 answers
434 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 ...
Hunter's user avatar
  • 1,484
2 votes
0 answers
105 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-...
user3914769's user avatar
2 votes
0 answers
1k 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 ...
loginid's user avatar
  • 394
1 vote
0 answers
268 views

Magento 2.4 - No route 404 page loading with product page issue

I redirecting 404 not found page to product page using controller_action_predispatch_cms_noroute_index event observer. Observer: $request = $observer->getData('request'); $request->initForward();...
Dhaduk Mitesh's user avatar
1 vote
0 answers
16 views

Magento 2 :How to write ategory URL rewrite

How to write 301 redirections to the category page Category URL key is "ballasts" request path : ballasts.html target path : catalog/category/view/id/10 When the user hit this URL directly ...
Jaisa's user avatar
  • 2,626
1 vote
0 answers
103 views

Magento 2 How to create and load custom route page

I want to add a custom redirect type 410 in URL redirect. I have added this in admin section and configured some pages with 410 redirect. Now I want to check the redirect type is 410 and if it is ...
Jancy Abraham's user avatar
1 vote
0 answers
443 views

Mobile Menu category link is undefined URL can't working in Magento 2​

I'm facing some annoying issues. When I'm on the desktop, no problem with the menu link. When I'm on responsive, when I go through the menu, I have the right URL but when I click on category link the ...
MOHIT GOHEL's user avatar
1 vote
3 answers
88 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;
Pranav Patel's user avatar
1 vote
0 answers
257 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 ...
chanchal's user avatar
  • 417
1 vote
1 answer
34 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/...
Yogita's user avatar
  • 784
1 vote
1 answer
93 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 ...
fudu's user avatar
  • 1,288
1 vote
0 answers
33 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 ...
Rishabh jain's user avatar
1 vote
2 answers
269 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....
zus's user avatar
  • 165
1 vote
1 answer
85 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 '...
Ramesh KR's user avatar
  • 876
1 vote
0 answers
48 views

htaccess redirect, assist please

What i am trying to do is rewrite some URLs and apply SSL on certaing pages on my site. This is the code that i have: RewriteEngine on RewriteBase / RewriteRule ^mylogin$ index.php?view=...
Nikola DImovski's user avatar
0 votes
1 answer
26 views

Magento 2: how to stop only redirect url for googlebot?

I have websites in .ca and .com. If someone hit .ca website from USA ip address it automatically redirects on .com and if it hits on .com website using CANADA ip address it automatically redirects on ....
Niraj Patel's user avatar
0 votes
0 answers
24 views

Multi-website redirects to main domain

In the same Magento instance I've configured two different Websites with only one Store and two Store Views for each Store. Website 1 -> Store 1 -> Store View 1 Website 1 -> Store 1 -> ...
WaPoNe's user avatar
  • 1,590
0 votes
0 answers
105 views

“undefined” Appended to URL Causing 404 Page Not Found Error

I need a help regarding http request or ajax call, I am trying to open forgot password page in popup,I have loaded widget model popup and it is working as expected. Now I am trying to reset password, ...
user73267's user avatar
  • 183
0 votes
1 answer
201 views

How to redirect to the form with entered data if a form content have any error in magento 2 admin custom form?

I have a custom admin form, After click save button i am checking some unique url in my save controller. If the url is not unique, i want to pass an error message and redirected to the form with filed ...
Mujahidh's user avatar
  • 2,793
0 votes
1 answer
22 views

M2 - redirect only links coming from Google

We have a new webshop that already has some good indexed links in Google. But the links (from an old Magento) contain a .html extension. So I wanted to redirect them all to the non .html URL (using ...
n00bly's user avatar
  • 623
0 votes
1 answer
571 views

How to rewrite url with query string in magento 2

I want to rewrite url like: https://www.test.com/custom-parent-cat/sub-cat/10-12-14-17-19.html?cat=101 to https://www.test.com/custom-parent-cat/sub-cat.html Please help me to achieve this. Thanks
Faisal Sheikh's user avatar
0 votes
0 answers
29 views

Can you do custom routing for cms page?

Can you change the url from cms page to a custom url? Is that something we could do with routes and show the cms page content
Jack Brooks's user avatar
0 votes
0 answers
95 views

magento 1.9 redirect to cart page

i am using magento 1.9 i have some products on home page and on category pages there is a button called "Buy Now" when user click on the button its make redirect to "Add cart" page,...
Asif Jalil's user avatar
0 votes
1 answer
256 views

how to redirect to external url from observer sales_order_place_after

I want to redirect to my external payment method after place order is Saved, I create an observer for event sales_order_place_after. Inside execute I put this code $this->responseFactory->create(...
Daniela Santillanes's user avatar
0 votes
1 answer
253 views

Magento2 redirect Urls for contact us

Magento2 how can I redirect following contact URL to another contact-us/?id=104972 >> contact/
Arjun's user avatar
  • 3,586
0 votes
2 answers
2k views

Magento 2.4 showing 404 not found for product page loadeds from a different store view

I have a Magento 2.4.1 store with two languages (EN and DE). Let's say the EN store view is currently selected and a product URL will look like this: https://website.de/wedding-bands/wedding-band-1....
Kloppo's user avatar
  • 95
0 votes
1 answer
73 views

Magento generates duplicate urls

I am new to Magento and I do not yet master the PHP language. (Magento ver. 1.9.4.2 I have a problem with the automatic generation of duplicate urls. I searched several forums but none of the ...
Walid Hamat's user avatar
0 votes
1 answer
16 views

problem redirection on product page when using http protocol

I got a problem in magento 1.6 In production environment, I pass a product url using http, it will be converted to https://domain/catalog/product/view/id/18341/category/451 instead of https://domain/...
lazy_coder's user avatar
0 votes
0 answers
485 views

Magento 2 how to redirect backend controller to previous page?

I'm trying to redirect a controller that is executed in Order Detail. If I end the controller returning redirect like this, it throws an error: return $resultRedirect; If I end the controller with ...
Oscar Vazquez's user avatar
0 votes
1 answer
671 views

Redirect .html to none html on URL

I tried to remove .html from my categories from admin panel and it works. now I have example.com/test , but example.com/test.html is 404 now. how can I redirect all .html urls to non html one? should ...
MGPM's user avatar
  • 751
0 votes
1 answer
288 views

Can I allow specific URL of default Magento2 Frontend and restrict all other Frontend URLs?

Our Magento frontend is in vue storefront, so we have restricted default Magento frontend URLs for our system. But I need one URL of frontend which is http://127.0.0.1/index.php/customer/account/...
Ajwad Syed's user avatar
  • 1,591
0 votes
0 answers
73 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 ...
Pepe44's user avatar
  • 43
0 votes
0 answers
261 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 ...
Aayush's user avatar
  • 15
0 votes
0 answers
71 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 ...
MehulKanjariya's user avatar
0 votes
0 answers
51 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 ...
rajk53's user avatar
  • 1
0 votes
0 answers
106 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.
Ardavan's user avatar
0 votes
0 answers
61 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://...
anil's user avatar
  • 293
0 votes
0 answers
154 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 ...
Raül's user avatar
  • 790
0 votes
1 answer
2k 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-&...
Nuno Sousa's user avatar
0 votes
1 answer
1k 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 ...
Nuno Sousa's user avatar
0 votes
1 answer
89 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?
stsnow's user avatar
  • 219
0 votes
1 answer
151 views

Redirect Customers to Forgot Password page after number of unsuccessful login attempts exceeded

I want to know how can i redirect a user to the Forgot Password page after exceeding the number of unsuccessful login attempts in Magento 2. Thanks.
Mudz7's user avatar
  • 61
0 votes
3 answers
65 views

Redirects and SEO

We have a category that we make available for approximately 2 weeks every 2 months for a presale. Once the presale is finished I redirect the category to another using a custom redirect. What sort of ...
Pragman's user avatar
  • 407