Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Change Product category URL name

    I have this zen cart installed and when I click on a category(Clothes) the resulting url looks like


    http://www.mysite.com/index.php?main...index&cPath=65
    What I want is to change it to
    http://www.mysite.com/index.php?main_page=Clothes

    What would be the best way to do this?
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: Change Product category URL name

    You have to change the PHP script so that the links on the page have the new URL format. It is those links that define the URLs.

    Next you need to alter the script to detect any incoming request to the server, and then work out what needs to be fetched to fulfill that request.

    Finally, an optional step, is to redirect incoming requests for the old URL to make a new request for the new URL. This forces searchengines to update their "available URLs" database held for the site.

    There's several add-ons for ZC that will do what you want, though the new URL format may well be even more concise than your example - and won't use parameters.

  3. #3
    Join Date
    Jul 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Change Product category URL name

    Quote Originally Posted by superprg View Post
    I have this zen cart installed and when I click on a category(Clothes) the resulting url looks like


    http://www.mysite.com/index.php?main...index&cPath=65
    What I want is to change it to
    http://www.mysite.com/index.php?main_page=Clothes

    What would be the best way to do this?
    by
    sundar

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Change Product category URL name

    You do not need to do this. There is no advantage to it, and if anything, there are risks in damaging your Search Engine rankings if you do.

    While many so-called "SEO experts" recommend changing dynamic links to static links, the gurus at the search engines tell you NOT to do this.

    The search engines PREFER that dynamic links are NOT spoofed to look like static links.

    However... if your site is going to sell products that compete with any of mine, then PLEASE DO change your links. I would rather have your site featuring badly on search engines than competing with mine!
    20 years a Zencart User

 

 

Similar Threads

  1. change category to sub category- keep URL?
    By Cinzia in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Mar 2011, 02:59 PM
  2. How do I change the URL sub-page name to the Category name?
    By gwtnow21 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 28 Jan 2011, 05:20 PM
  3. How would I change Product URL in Product Type Info Page to a different name
    By wtashby in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Nov 2008, 11:11 PM
  4. Category name in URL?
    By DigitalGuard in forum General Questions
    Replies: 1
    Last Post: 1 May 2008, 03:33 AM
  5. Change cateogory name in the URL with Ultimate SEO
    By superprg in forum General Questions
    Replies: 3
    Last Post: 25 Aug 2007, 12:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg