Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2005
    Posts
    43
    Plugin Contributions
    0

    Default how to add a new page like index.php?

    I need to use such site structure for search engine optimization.

    www.mysite.com/index.php
    www.mysite.com/dir1/index.php
    www.mysite.com/dir2/index.php
    www.mysite.com/dir3/index.php
    ....

    so my question is how to copy index.php to sub directories?
    I tried sometimes can't get it work.
    I have no idea what should be included for those files to work like the root index file.

    Thanks

  2. #2
    Join Date
    Jan 2005
    Posts
    43
    Plugin Contributions
    0

    Default Re: how to add a new page like index.php?

    that way, I think maybe it's possible to have each category to use unique theme design, unique header, unique color ... looks totaly different to other categories.

    :)

    I am not a skilled programmer, so if it's a newbie question please don't hesitate to reply it.

    Thanks a lot

  3. #3
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: how to add a new page like index.php?

    That isn't the way to achieve it the new look for pages at all if that is what you are trying to achieve.

    The info is for how to create different looks for different pages can be found in the includes/templates/YOUR_TEMPLATE/css/ folder where there is information regarding css on a per page basis.

    Also, look at includes/templates/YOUR_TEMPLATE/templates/tpl_main_page.php for information on how to make entire page display changes on a per page basis. The info is in the comments at the top of the file.


    Hope that helps!
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  4. #4
    Join Date
    Jan 2005
    Posts
    43
    Plugin Contributions
    0

    Re: how to add a new page like index.php?

    thanks
    but my primary purpose is creating these pages to help me get better ranking on search engine.

    I am currently use .html pages as a discription page for each category.
    like this

    www.mysite.com/index.php
    www.mysite.com/keywords1/index.html
    www.mysite.com/keywords2/index.html
    www.mysite.com/keywords3/index.html
    ....

    I changed the category links to redirect it to these .html pages before the real category index pages.

    now I have achieved a good ranking by these URLs
    www.mysite.com/keywords1/
    www.mysite.com/keywords2/
    www.mysite.com/keywords3/
    ....

    While although I made the .html theme the same as my main zen-cart theme,
    I can't get some function work on .html page, like shopping cart , or side box mods.
    So I am thinking if I can use index.php files to replace those .html files.

    I know little about .php coding.

    I am not sure if I have discribed it in the right way.
    Sorry for my poor English, if it's alittle confusing:)

    Thanks

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: how to add a new page like index.php?

    there are many, many Zen Cart sites that are ranked very high without all this. Just the standard ZenCart. Doing what you are attempting is counterproductive and will not necessarily increase your ranking and actually some penalize you for duplicate information.
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: how to add a new page like index.php?

    I agree with Kobra, you are overworking your search optimization. If you are just looking to vary the site style, follow Tina's advice. In terms of search optimization, there are plenty of techniques to increase your ranking without creating tiered duplicate index pages, which will lead to all kinds of upgrade trouble and seems a little shady...
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  7. #7
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    Idea or Suggestion Re: how to add a new page like index.php?

    Quote Originally Posted by TinaS

    Also, look at includes/templates/YOUR_TEMPLATE/templates/tpl_main_page.php for information on how to make entire page display changes on a per page basis. The info is in the comments at the top of the file.


    Hope that helps!
    Noobie on the loose ,

    Someone please correct me if I'm wrong 'cause I'm still trying to get the hang of this but isn't the path:

    includes/templates/YOUR_TEMPLATE/templates/common/tpl_main_page.php

    ?

  8. #8
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: how to add a new page like index.php?

    Yes, the common directory is correct.

  9. #9
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: how to add a new page like index.php?

    OOOPS I added a directory - sorry bout that ....

    includes/templates/YOUR_TEMPLATE/templates/tpl_main_page.php

    SHOULD BE :
    includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

    Sorry bout that!
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  10. #10
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    Re: how to add a new page like index.php?

    Quote Originally Posted by TinaS
    OOOPS I added a directory - sorry bout that ....

    SHOULD BE :
    includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

    Sorry bout that!

    Hey Tina,

    No, don't think you added a directory but excluded one. In order to override would not the correct path be:

    includes/templates/YOUR_TEMPLATE/templates/common/tpl_main_page.php

    ?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to add banner to index.php?main_page=index&cPath=0 ?
    By Alexiss in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Oct 2011, 04:55 PM
  2. Replies: 2
    Last Post: 25 Sep 2011, 12:18 PM
  3. How to add a new section that only shows up on the index page but not others
    By graper in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 2 Sep 2006, 04:26 PM
  4. Blank index.php and /admin/index.php page after install
    By gsummerlin in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 14 Jul 2006, 10:04 PM

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