Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2010
    Posts
    19
    Plugin Contributions
    0

    Default Moving index.php

    I have a website that has the catalog stored as www.computechracing.com/catalog/index.php My problem is that I now want to make the catalog my true home page. Simply moving the catalog/index.php to /index.php obviously doesn't work correctly. I even tried copying the entire catalog folder and moving it to the root and that wouldn't work.

    Temporarily I have a simple re-direct from index.html to catalog/index.php but I don't want to leave it like this because I'm trying to optimize my SEO.

    I would prefer to leave the catalog in the catalog folder for organizations sake and just move the index to the root and modify the code accordingly. If that isn't possible then why didn't moving the catalog contents to the root folder work correctly. Could it be that I have duplicates??

    Is it possible to modify the index.php code and move locations?


  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Moving index.php

    Quote Originally Posted by DesignLessDesign View Post
    If that isn't possible then why didn't moving the catalog contents to the root folder work correctly.
    It should have, if you did everything right. You didn't describe what didn't work, but:

    https://www.zen-cart.com/tutorials/i...hp?article=122

    There's no way I know of to have the index file in a different directory.

  3. #3
    Join Date
    Mar 2010
    Posts
    19
    Plugin Contributions
    0

    Default Re: Moving index.php

    I have moved all the files to the root directory and left the files on the remote server under the folder catalog. I then changed the configure file to remove all of the /catalog extensions. Yet when I go to www.computechracing.com/index.php the page is blank and has no html code whatsoever.

    This is what its supposed to look like www.computechracing.com/catalog/index.php

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Moving index.php

    I have moved all the files to the root directory and left the files on the remote server under the folder catalog.
    These are incompatible statements... unless you mean you copied the files to root.
    Regardless, the root version will work if you change the configure files correctly. Post your configure.php without username/password.

  5. #5
    Join Date
    Mar 2010
    Posts
    19
    Plugin Contributions
    0

    Default Re: Moving index.php

    Ok, I copied the files in the catalog directory to the root directory. I re-did it again and I am now correctly acessing my index.php from the root.

    Now my problem is that my zen cart menu to the left works great on the index page and shows the correct link to the root version of the catalog. But when I go to an actual category (located on the root) the menu links change to be catalog/category instead of /category like it is on the index.

    I changed both the configure files for the includes and includes/admin and refreshed the page but it still doesn't want to update the category menu's with the new link.

    Is there another file that somehow has the /catalog extension in it besides the configures?

  6. #6
    Join Date
    Mar 2010
    Posts
    19
    Plugin Contributions
    0

    Default Re: Moving index.php



    How in the world can the index.php page have the correct address in the menu system and when you click on a category have a different one??? How is the menu system different from the index to the category. I dont understand

    AAAAAAAAAAAAAAAAAAA

    Check it out here

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Moving index.php

    You've added a bunch of .htaccess rewrite rules which are changing things, presumably from a so-called "SEO" addon.

    And, it seems you've still got all your ZC files in a "catalog" folder for some reason. Not recommended.
    Remember: when you edit the configure.php files to change the paths, you MUST make the files writable on the server before you can replace their contents, since they're normally set to read-only.

    Additionally, I wouldn't be surprised if your header menu with all the flyout/pulldown stuff might be hard-coded with old links. Just a guess, since it's a common mistake often made.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Mar 2010
    Posts
    19
    Plugin Contributions
    0

    Default Re: Moving index.php

    Thanks Everyone. My issues were solved.

    The issue all along was my Ultimate SEO .htaccess file rewriting to /catalog/ instead of /

    I knew I had the hard coding incorrect but had to get the addresses correct first

 

 

Similar Threads

  1. v151 Moving servers causing error on Index.php
    By RFree190 in forum General Questions
    Replies: 6
    Last Post: 16 Feb 2016, 07:53 PM
  2. Moving index.php file
    By bjdav5 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Feb 2010, 12:59 AM
  3. Moving index.php to root
    By Sc0tt in forum Basic Configuration
    Replies: 3
    Last Post: 24 May 2006, 11:46 PM
  4. moving just index.php to main dir
    By paperlion in forum Basic Configuration
    Replies: 0
    Last Post: 10 May 2006, 07:15 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