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.

Filter by
Sorted by
Tagged with
2
votes
2answers
535 views

Magento 2 - CMS Block redirection to url

I would like to be able to redirect to a url when the user clicks the category. I have this menu, with the News category. This category loads a CMS Block: And only having a script which redirects me ...
2
votes
2answers
2k views

Magento 2: How to Redirect from Observer to CMS Page

I want to restrict some products from add to cart and redirect to a cms page on Add to Cart action. I have used 'controller_action_predispatch_checkout_cart_add' event. The code restrict the add to ...
2
votes
4answers
17k views

Magento secure and unsecure url redirection issue

I am facing issue regarding redirection. My system has been already live.Google already cached all pages with https . In past my secure url and unsecured were both https://www.example.com. But now ...
2
votes
1answer
3k views

Custom admin url, now some admin modules redirect to frontend

I have moved the magento admin to a seperate node, thus updated the settings in admin to set admin url as custom : thus admin.example.com, which points to that servers ip. All ok, but I find a lot of ...
2
votes
2answers
472 views

Magento2 Migration Redirects to the old Server

I moved my magento2 installation to a new server with a new ip adress. I used this documentation for my backups (http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-backup.html) ...
2
votes
2answers
49 views

Move store to alternative location on same server

I want to move my store to a different location on the current server and keep it accessible for myself only. I will launch a new store at the same time. The problem I have is that I cannot seem to ...
2
votes
2answers
2k views

How to disable redirect to homepage?

Suppose I have a Magento page www.ce.li/apparel.html and my site has an alias name, say abc.ce.li. When I access abc.ce.li/apparel.html (using alias abc instead of www) Magento redirects me to it's ...
2
votes
2answers
425 views

Automatic redirection Controller

I am creating a controller extending \Magento\Customer\Controller\AbstractAccount but it automatically get redirected to http://example.com/customer/account/login/ how can I stop that. basically all ...
2
votes
2answers
639 views

Admin Categories Page Infinite 302 Redirection after migrating the data from 1.9.3.6

For some reason when I go to Catalog >> Categories page it goes into infinite 302 redirection loop. All other pages work fine. I noticed the issue after migrating the data from Magento v1.9.6.3. ...
2
votes
1answer
4k views

Magento 2 : Redirect From Homepage to Login if not Logged

I would like to redirect customer from homepage to login page, if they are not logged in. I have a module however this just shows a blank homepage instead of redirecting. Repo: https://github.com/...
2
votes
2answers
543 views

How do I redirect a category page to account page ?

I want to include the account page in the main menu. So I created a category page. My first try was that I put to the URL Key input the value customer/account, but Magento saved the value as customer-...
2
votes
1answer
992 views

Multiple URL Redirect to HTTPS

I'm sure this is simple, but I can't quite work it out. My Magento website has several (duplicate) URL's: http://www.example.com http://www.example.com/index.php/ https://www.example.com/ https://...
2
votes
1answer
478 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
4k views

Reload Onepage Checkout to specific step

I have a payment module for Magento that redirects to an external site to collect the payment info, then upon success it redirects back to the Magento one page checkout page. Right now when it ...
2
votes
2answers
2k views

Magento Adminhtml grid massaction function's redirect throws user to dashboard

I have set up a custom adminhtml grid for a model of mine, which works fine. I've added a mass-delete function which allows the user to tick multiple entries and then delete them. This function works ...
2
votes
1answer
795 views

Custom Redirect based on Customer Group

I have installed an extension that allows me to prevent certain customer groups from accessing certain products/categories. E.x. Only my retailer customers have access to product displays etc. When ...
2
votes
1answer
400 views

Magento2.3.2: How to redirect customer to login page if not logged in before checkout?

How to redirect the customer to the signin/signup page if not logged in before proceeding to checkout?
2
votes
1answer
614 views

Redirect From one category to another

This is driving me insane :( I need to redirect from one category to another existing category in Magento 1.9 I've tried to add a rewrite in magento's module but of course get the error Request Path ...
2
votes
1answer
653 views

Why the Campaign Tracking Parameters isn't working on Product Pages?

I have a situation where I send out email campaigns which link back to products. The link code is in the format: ?utm_campaign=EnewsNov&utm_medium=email&utm_source=HouseList&utm_term=...
2
votes
1answer
3k views

How to redirect to customer account login page using Ajax in magento 2?

I have created a custom module for adding product to wishlist using ajax. In my custom module controller I have checked the user is login or not, if not logged in and trying to add to wishlist it won'...
2
votes
1answer
630 views

Controller redirect to wrong location in Magento 2

I have a controller where I created a redirect to checkout/#payment like this $resultRedirect = $this->resultRedirectFactory->create(); $resultRedirect->setPath('checkout/#payment'); ...
2
votes
1answer
999 views

Magento 2 Preserving query strings on 301 redirect

Has anyone come across a method of preserving query strings on redirecting product urls? I have my google shopping products set up with a ?gshopping=1 at the end of the url. A few products have had ...
2
votes
2answers
2k views

How to create custom Thank you page in Magento?

I am working for a Magento based website in which my for contact us page when I fill the form and click on the submit, i got the message of "thankyou" on same page but the url is changing from example....
2
votes
1answer
162 views

Different redirection for two login forms

I have same login form of magento in two different phtml pages(one is default login page and other is my custom phtml page but the login code is same since i copied from default login page). Now what ...
2
votes
1answer
603 views

customer redirect multi store magento

I have set up a multi store in magento, so I have example.com and example.com/wholesaler what I need to do is have everyone who is in customer group wholesale redirected to example.com/wholesaler from ...
2
votes
1answer
620 views

Redirect “Add to Cart” from Category page to CMS page

On my category page, if the user clicks "Add to Cart", then I want to add that product to their cart and then redirect to a CMS page. I've seen the other solutions available, but none of them seem to ...
2
votes
1answer
155 views

Magento Admin redirection issue

I am working on a multistore setup. There is a problem with admin area: it is redirecting after login to base domain admin domain.com I am using this code in .htaccess for multiple stores: ...
2
votes
2answers
38 views

Issues combining secure_url with noaction

I have a custom module with frontend actions that I want to be secure. So in my module's config.xml file I put this: <secure_url> <mymodule_controller>/mymodule/controller</...
2
votes
3answers
5k views

Checkout keeps redirecting to shoppingcart

Using Magento 1.9.1. After reaching the final step in Checkout, it loops/redirects back to the shopping cart. The articles in the shopping cart are not removed. I have been searching for days, and ...
2
votes
1answer
1k views

Product Reviews is redirecting to shopping cart when i click on “Submit Review Button”

I am using "rwd" theme in new magento installation, i am facing an issue with product reviews tab in this theme. When i click on "Be the first to review this product." It opens up a form and which i ...
2
votes
2answers
407 views

Redirect admin user based on role

We have several admin roles for our product and based on that role they could be redirected to a different section for their initial page. That being said I was curious how to redirect an admin user ...
2
votes
1answer
771 views

Preserving Adminhtml Grid Filter Parameters After a Redirect

As title says, I'd like to keep the filtering parameters for a custom grid I made in the admin. For example, if I filter the grid, edit a row, and save, I'd like to be redirected to the grid and have ...
2
votes
4answers
3k views

How do I fix Magento API URL redirect on HTTP?

I'm running Magento CE 1.8.1 and trying to access my Magento site over the API using the URL http://www.mysite.com/index.php/api/v2_soap?wsdl=1, but I'm getting redirected to https://www.mysite.com/...
2
votes
1answer
3k views

Strange .htaccess and base URL redirect happening

I have an odd scenario that I cannot figure out. When Auto-redirect to Base URL is set to 301 or 302, the homepage of my website redirects correctly to what I have defined as my base URL (I am using ...
2
votes
2answers
631 views

Clicking on certain extension links in admin menu causes 302 redirect to dashboard

Whenever I click on certain extension links in Magento admin the page redirects to the Magento dashboard. Nothing is showing up in the system or exception logs. I cannot access the extension pages or ...
2
votes
1answer
1k views

Magento 1.7 Redirect on review_product_view Page

I have 3 observers set up that execute a 301 redirect via this method: Mage::app()->getResponse() ->setRedirect($url, 301) ->sendResponse(); 2 of the observer events execute the ...
2
votes
2answers
2k views

Redirected to the Homepage when add www. in any URL

For Example, I have one page: http://mensattire.co.uk/shirts If I add "www." in above url, means: www.mensattire.co.uk/shirts It redirects me to the homepage. Why ? My .htaccess file: #############...
2
votes
1answer
308 views

Custom admin page too many redirects Magento 2

I'm starting to get familiar with Magento 2. I installed v2.3.1 in an Nginx/PHP-fpm and got it working, including the sample data. Then I followed everything in the tutorial at https://devdocs....
2
votes
1answer
378 views

Magento 2.2.2 - Redirect user to CMS page based on IP using Observer

events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event ...
2
votes
2answers
59 views

Redirecting from block not working

I'm trying to redirect from block but it's not working. But same methods work in different projects. 1. Process 1 public function __construct( \Magento\Framework\View\Element\Template\Context $...
2
votes
1answer
388 views

Magento 2 admin catalog category page isn't redirecting properly

I'm migrating a website from Magento 1.9.0.1 to 2.2, I've only migrated data, that's all I need, the migration completed sucessfully, all the products, customers, orders, categories are there, all ...
2
votes
1answer
406 views

Multi Store mobile says too many redirects

Multi store states to many redirects to clear cookies only on mobile version so i added the following to the .htaccess and the mobile version works again RewriteEngine on RewriteCond %{...
2
votes
1answer
773 views

Magento 2 : How do redirect to previous page after Registration (Create An Account)?

I want to redirect customer after new registration on referrer page like if the customer is view any specific product and then he clicks for registration then after registration we want to redirect on ...
2
votes
1answer
2k views

magento redirect http to https

I want to redirect http requests to https on Magento CE 1.8. I followed the steps below, but none of the methods work: system->web->secure->Use Secure URLs in Frontend "yes" In my .htaccess ...
2
votes
1answer
2k views

Magento url rewrite issues - all pages without www redirect to homepage

Every page without w w w redirects to the homepage. Pages work normally with the w w w & the homepage redirects from non w w w to w w w. (I want w w w only on the website) I have tried changing ...
2
votes
1answer
40 views

simulating adminhtml login redirect for a bootstrap file

I know that the following code detects login for a user: if(!Mage::getSingleton('customer/session')->isLoggedIn()){ //not logged in }else{ // logged in } However, what is the ...
2
votes
1answer
530 views

URL Redirects using .htaccess

We are currently running Magento 1.9.0.1 CE for our online store. We have a domain example.com and a subdomain in.example.com We use in.example.com specifically for customers from India whereas ...
2
votes
1answer
374 views

Images in custom /media path redirect some images to get.php when accessed via CloudFront CDN

I have some images stored in media/email/images/. I accessed the images via CDN and all loaded as they should. Afterwards I mistakenly deleted a few images and eventually the CDN URL for the missing ...
2
votes
1answer
2k views

How to use URL Re-write to direct one category to another?

How do I use URL Re-write to direct one category to another? I have found a tutorial on how to do a custom URL re-write one how to direct a category to a CMS page. Is there an easy way to direct ...
2
votes
1answer
90 views

Custom error message on basket page

What I know how to do: I have set up an observer to catch the event "Go to Checkout".Everything seems to work fine.I can make a check that I want and redirect back to the page with an error message. ...

1 2 3 4 5 14