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

                              Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                              Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form