How to create custom link for category?To create a different page and link from the category view pageHow to link between two categories in different root catalog?Layered Navigation Category linkHow to add root category to navigationHow to redirect a category to another linkcategory url redirect to custom controller - magento 2New Root Category Not Display At FrontEndCategory menu linking direct to productthe category buttons are redirecting me to the home screen on the front endAdd Custom Link Under Existing Categories

Ribbon Cable Cross Talk - Is there a fix after the fact?

1950s or earlier book with electrical currents living on Pluto

Salesforce bug enabled "Modify All"

Is my company merging branches wrong?

Filter a file list against an integer array?

Removing Doubles Destroy Topology

Will this series of events work to drown the Tarrasque?

Do seaplanes need to get clearance for takeoff?

Way of refund if scammed?

How would a physicist explain this starship engine?

How to become an Editorial board member?

How can I prevent Bash expansion from passing files starting with "-" as argument?

Why did Nick Fury not hesitate in blowing up the plane he thought was carrying a nuke?

US F1 Visa grace period attending a conference

What causes a person to remain in this world as a ghost?

How to safely discharge oneself

Farthing / Riding

List of lists elementwise greater/smaller than

Why does an injection from a set to a countable set imply that set is countable?

Germany rejected my entry to Schengen countries

Good examples of "two is easy, three is hard" in computational sciences

If the Charles SSL Proxy shows me sensitive data, is that data insecure/exposed?

How do we explain the use of a software on a math paper?

How did Jean Parisot de Valette, 49th Grand Master of the Order of Malta, die?



How to create custom link for category?


To create a different page and link from the category view pageHow to link between two categories in different root catalog?Layered Navigation Category linkHow to add root category to navigationHow to redirect a category to another linkcategory url redirect to custom controller - magento 2New Root Category Not Display At FrontEndCategory menu linking direct to productthe category buttons are redirecting me to the home screen on the front endAdd Custom Link Under Existing Categories






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?



Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com



Pls Help And Suggest Some Ideas.










share|improve this question






























    0















    I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?



    Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com



    Pls Help And Suggest Some Ideas.










    share|improve this question


























      0












      0








      0








      I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?



      Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com



      Pls Help And Suggest Some Ideas.










      share|improve this question
















      I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?



      Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com



      Pls Help And Suggest Some Ideas.







      magento-1.9 category






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 2 '17 at 11:55









      Siarhey Uchukhlebau

      10.3k93058




      10.3k93058










      asked May 2 '17 at 11:47









      Rushikesh SolankiRushikesh Solanki

      537321




      537321




















          3 Answers
          3






          active

          oldest

          votes


















          0














          I dont know why you want to do this, but you can achieve by .htaccess



          use 301 redirect rule for that



          <IfModule mod_rewrite.c>
          #301 redirect
          redirect 301 oldURL NEWURL
          </IfModule>





          share|improve this answer






























            0














            Easiest possible way to do is:



            Admin Level: In the category(Football) description you can add some script:



            <script>window.location.href = "http://www.football.com";</script>


            Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php



            There inside function _renderCategoryMenuItemHtml find below code



            $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
            $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
            $html[] = '</a>';


            & then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)as per your requirement.






            share|improve this answer

























            • its working but when click any category first its go to current category then redirect another category.

              – Rushikesh Solanki
              May 2 '17 at 13:24











            • can have a other ways?

              – Rushikesh Solanki
              May 2 '17 at 13:25











            • Other way is code level changes. See my updated answer. With Admin changes it will do that way only.

              – Akhil Gupta
              May 3 '17 at 5:12











            • Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.

              – Akhil Gupta
              May 3 '17 at 5:15


















            -1














            You can create custom Url Rewrites from Magento Admin panel.



            Magento admin > Catalog > URL Rewrite Management >



            Search for current category request path and delete it



            Now you will able to create new url rewrite for that particular category.



            ID Path : unique id path 
            Request Path : football.html
            Target Path :www.hockey.com
            Redirect : 301





            share|improve this answer

























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "479"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172621%2fhow-to-create-custom-link-for-category%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              I dont know why you want to do this, but you can achieve by .htaccess



              use 301 redirect rule for that



              <IfModule mod_rewrite.c>
              #301 redirect
              redirect 301 oldURL NEWURL
              </IfModule>





              share|improve this answer



























                0














                I dont know why you want to do this, but you can achieve by .htaccess



                use 301 redirect rule for that



                <IfModule mod_rewrite.c>
                #301 redirect
                redirect 301 oldURL NEWURL
                </IfModule>





                share|improve this answer

























                  0












                  0








                  0







                  I dont know why you want to do this, but you can achieve by .htaccess



                  use 301 redirect rule for that



                  <IfModule mod_rewrite.c>
                  #301 redirect
                  redirect 301 oldURL NEWURL
                  </IfModule>





                  share|improve this answer













                  I dont know why you want to do this, but you can achieve by .htaccess



                  use 301 redirect rule for that



                  <IfModule mod_rewrite.c>
                  #301 redirect
                  redirect 301 oldURL NEWURL
                  </IfModule>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 2 '17 at 13:45









                  Murtuza ZabuawalaMurtuza Zabuawala

                  12.8k73363




                  12.8k73363























                      0














                      Easiest possible way to do is:



                      Admin Level: In the category(Football) description you can add some script:



                      <script>window.location.href = "http://www.football.com";</script>


                      Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php



                      There inside function _renderCategoryMenuItemHtml find below code



                      $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
                      $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
                      $html[] = '</a>';


                      & then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)as per your requirement.






                      share|improve this answer

























                      • its working but when click any category first its go to current category then redirect another category.

                        – Rushikesh Solanki
                        May 2 '17 at 13:24











                      • can have a other ways?

                        – Rushikesh Solanki
                        May 2 '17 at 13:25











                      • Other way is code level changes. See my updated answer. With Admin changes it will do that way only.

                        – Akhil Gupta
                        May 3 '17 at 5:12











                      • Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.

                        – Akhil Gupta
                        May 3 '17 at 5:15















                      0














                      Easiest possible way to do is:



                      Admin Level: In the category(Football) description you can add some script:



                      <script>window.location.href = "http://www.football.com";</script>


                      Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php



                      There inside function _renderCategoryMenuItemHtml find below code



                      $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
                      $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
                      $html[] = '</a>';


                      & then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)as per your requirement.






                      share|improve this answer

























                      • its working but when click any category first its go to current category then redirect another category.

                        – Rushikesh Solanki
                        May 2 '17 at 13:24











                      • can have a other ways?

                        – Rushikesh Solanki
                        May 2 '17 at 13:25











                      • Other way is code level changes. See my updated answer. With Admin changes it will do that way only.

                        – Akhil Gupta
                        May 3 '17 at 5:12











                      • Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.

                        – Akhil Gupta
                        May 3 '17 at 5:15













                      0












                      0








                      0







                      Easiest possible way to do is:



                      Admin Level: In the category(Football) description you can add some script:



                      <script>window.location.href = "http://www.football.com";</script>


                      Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php



                      There inside function _renderCategoryMenuItemHtml find below code



                      $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
                      $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
                      $html[] = '</a>';


                      & then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)as per your requirement.






                      share|improve this answer















                      Easiest possible way to do is:



                      Admin Level: In the category(Football) description you can add some script:



                      <script>window.location.href = "http://www.football.com";</script>


                      Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php



                      There inside function _renderCategoryMenuItemHtml find below code



                      $html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
                      $html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
                      $html[] = '</a>';


                      & then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)as per your requirement.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited May 3 '17 at 5:11

























                      answered May 2 '17 at 11:58









                      Akhil GuptaAkhil Gupta

                      1,6261721




                      1,6261721












                      • its working but when click any category first its go to current category then redirect another category.

                        – Rushikesh Solanki
                        May 2 '17 at 13:24











                      • can have a other ways?

                        – Rushikesh Solanki
                        May 2 '17 at 13:25











                      • Other way is code level changes. See my updated answer. With Admin changes it will do that way only.

                        – Akhil Gupta
                        May 3 '17 at 5:12











                      • Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.

                        – Akhil Gupta
                        May 3 '17 at 5:15

















                      • its working but when click any category first its go to current category then redirect another category.

                        – Rushikesh Solanki
                        May 2 '17 at 13:24











                      • can have a other ways?

                        – Rushikesh Solanki
                        May 2 '17 at 13:25











                      • Other way is code level changes. See my updated answer. With Admin changes it will do that way only.

                        – Akhil Gupta
                        May 3 '17 at 5:12











                      • Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.

                        – Akhil Gupta
                        May 3 '17 at 5:15
















                      its working but when click any category first its go to current category then redirect another category.

                      – Rushikesh Solanki
                      May 2 '17 at 13:24





                      its working but when click any category first its go to current category then redirect another category.

                      – Rushikesh Solanki
                      May 2 '17 at 13:24













                      can have a other ways?

                      – Rushikesh Solanki
                      May 2 '17 at 13:25





                      can have a other ways?

                      – Rushikesh Solanki
                      May 2 '17 at 13:25













                      Other way is code level changes. See my updated answer. With Admin changes it will do that way only.

                      – Akhil Gupta
                      May 3 '17 at 5:12





                      Other way is code level changes. See my updated answer. With Admin changes it will do that way only.

                      – Akhil Gupta
                      May 3 '17 at 5:12













                      Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.

                      – Akhil Gupta
                      May 3 '17 at 5:15





                      Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.

                      – Akhil Gupta
                      May 3 '17 at 5:15











                      -1














                      You can create custom Url Rewrites from Magento Admin panel.



                      Magento admin > Catalog > URL Rewrite Management >



                      Search for current category request path and delete it



                      Now you will able to create new url rewrite for that particular category.



                      ID Path : unique id path 
                      Request Path : football.html
                      Target Path :www.hockey.com
                      Redirect : 301





                      share|improve this answer





























                        -1














                        You can create custom Url Rewrites from Magento Admin panel.



                        Magento admin > Catalog > URL Rewrite Management >



                        Search for current category request path and delete it



                        Now you will able to create new url rewrite for that particular category.



                        ID Path : unique id path 
                        Request Path : football.html
                        Target Path :www.hockey.com
                        Redirect : 301





                        share|improve this answer



























                          -1












                          -1








                          -1







                          You can create custom Url Rewrites from Magento Admin panel.



                          Magento admin > Catalog > URL Rewrite Management >



                          Search for current category request path and delete it



                          Now you will able to create new url rewrite for that particular category.



                          ID Path : unique id path 
                          Request Path : football.html
                          Target Path :www.hockey.com
                          Redirect : 301





                          share|improve this answer















                          You can create custom Url Rewrites from Magento Admin panel.



                          Magento admin > Catalog > URL Rewrite Management >



                          Search for current category request path and delete it



                          Now you will able to create new url rewrite for that particular category.



                          ID Path : unique id path 
                          Request Path : football.html
                          Target Path :www.hockey.com
                          Redirect : 301






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited May 2 '17 at 12:13

























                          answered May 2 '17 at 12:02









                          Jitheesh V OJitheesh V O

                          13




                          13



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Magento Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172621%2fhow-to-create-custom-link-for-category%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                              Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?