Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    11
    Plugin Contributions
    0

    Default does the main page have to be named 'index.php' ?

    I made a mistake by installing zencart in the main directory, but now I want another page to be my home page when websitename.com is typed in the browser..so that eans that my new home page needs to take the 'index.php' title right? how can I get around this issue? how can i still keep the zencart pages working correctly through all of this?

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: does the main page have to be named 'index.php' ?

    Not unless your opening index page is a php script,
    otherwise create your html page and call it index.html, it will then load first
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    May 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: does the main page have to be named 'index.php' ?

    I just tried having a index.html but the index.php of zencart still seems to be the deault page my domain picks up

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: does the main page have to be named 'index.php' ?

    It can be configured to use html as default. I dont remember how tho, contact your host and ask them to do that for you.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    May 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: does the main page have to be named 'index.php' ?

    thank you this will be useful

    I can still use css files in html right

  6. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: does the main page have to be named 'index.php' ?

    Of course, there would be no problem at all.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  7. #7
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: does the main page have to be named 'index.php' ?

    Quote Originally Posted by tsakali View Post
    I just tried having a index.html but the index.php of zencart still seems to be the deault page my domain picks up
    I have the reverse issue. My index.php will not load on my unix hosting and I created a directory when I installed Zen Cart. Additionally, the host support pages I read (at my domain hosting company) shows a list of acceptable file names to use with unix and the closest I could find was index.php3, index.php4 or index.php5?

    Do I need to rename my index.php to one of those extensions? Do I need to move it or copy that page after renaming it to the main website folder for my hosting to pick up it up so that is is viewable and ready for customers?

    I managed to get through everything else, but this has me stumped.



    Quote Originally Posted by tsakali View Post
    just to add to this helpful place I looked up what you mentioned and I found out that by editing the .htaccess file you can change the order of which diff. index.xxx file will be loaded first.

    either find out where this line is or add it:

    DirectoryIndex index.html index.php


    on this example .html will load first

    but make sure you add .php in the list or else it can get funky...for instance I forgot to do that and I could not acces the zencart admin area as easily

    Additionally, the quote above I attempted, but having no idea where to "insert" this on the .htaccess page, needless to say it did not work for me, so I changed it back.

    brick wall & me -->

    Any and all help is appreciated!
    Thanks!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: does the main page have to be named 'index.php' ?

    You could try
    1. renaming your index.php to index.php5 or index.php4
    and then
    2. edit your html_output.php file in the includes/functions folder and change the index.php references there to index.php5 or index.php4 (the same as you did to the actual filename):
    Code:
          if (zen_not_null($parameters)) {
            $link .= 'index.php?main_page='. $page . "&" . zen_output_string($parameters);
          } else {
            $link .= 'index.php?main_page=' . $page;
          }
    .

    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.

  9. #9
    Join Date
    Mar 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: does the main page have to be named 'index.php' ?

    Thanks for the quick response DrByte.

    I did as instructed, however the results are unchanged. I'll contact my hosting company and see if they can fix it for me. If not, I'll be back.

    Thanks again!

 

 

Similar Threads

  1. How to make the HOME page (index) different than the STORE page (main page)?
    By Dianna668 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 27 Apr 2011, 05:29 PM
  2. Congratulations! You have successfully... - DOES NOT DELETE WITH NEW index.php?
    By Improving Lives in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Jan 2010, 04:51 AM
  3. Replies: 2
    Last Post: 22 Sep 2009, 05:01 PM
  4. Unable to get the default index.php main page
    By crenix in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Dec 2006, 01:34 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