Page 1 of 2 12 LastLast
Results 1 to 10 of 11

make catalog/index.php the default homepage of my website...

This is a discussion on make catalog/index.php the default homepage of my website... within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; How do I change my default page to point to the catalog/index.php page? Is this a big deal? Do I ...

      
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    35
    Rep Power
    0


    Default how can i make my website point to catalog/index.htm page?

    How do I change my default page to point to the catalog/index.php page?

    Is this a big deal? Do I have to reinstall or ask my webhosting company to change the .conf file??

    EEEK!

  2. #2
    Member
    Join Date
    Apr 2004
    Posts
    35
    Rep Power
    0


    Default make catalog/index.php the default homepage of my website...

    I'm ready to go live, and my shopping cart is in catalog/ folder...

    How can I make my website automatically point to catalog/index.php?

    Will I have to reinstall or change some .conf file? Is this a big deal....

    Alll's I want is for the user to automatically be pointed to catalog/index.php when he types in www.mydomain.com

  3. #3
    Lurker
    Join Date
    Jul 2004
    Posts
    1
    Rep Power
    0


    Default

    Hi

    All I did was create a shopping cart icon on my first page and establish a link to the catalog/index page. When the cart is clicked the shopper is sent to the OSC catalog. I use Adobe GoLive but I am sure that what ever authoring software you use is fine.

    Dave

  4. #4
    Lurker
    Join Date
    Aug 2004
    Posts
    4
    Rep Power
    0


    Default

    Use this to make your index.html (or whatever is loaded by default)

    <html>
    <head>
    <title></title>
    <META http-equiv="refresh" content="0;URL=http://www.mydomain.com/catalog/index.php">
    </head>

    <body>
    </body>
    </html>

  5. #5
    Lurker
    Join Date
    Aug 2004
    Posts
    4
    Rep Power
    0


    Default

    or if you have access to your .htaccess file you would just change the DirectoryIndex to read

    DirectoryIndex /catalog/index.php

    This is how it is done by professional webmasters.

  6. #6
    Member
    Join Date
    Apr 2004
    Posts
    35
    Rep Power
    0


    Default

    Somebody told me to do this...and it works good:



    Replace the index.htm in the root folder with a new index.php.
    Then put the following code:


    <?
    Header("Location: catalog/index.php");
    ?>

    It's cool! It bounces immediately to my catalog folder. Pretty neat!!

  7. #7
    Member
    Join Date
    Apr 2004
    Posts
    35
    Rep Power
    0


    Default

    Ya know...I called my hosting company and did this at first, and maybe they didn't do it right, or something, but it was pulling up my catalog/index.php page, but all the file references were hosed for some reason, I think it was because of the base href.

    Anyway, I freaked out, and told him to change it back...and another guy told me to do this:

    Make an index.php page in the root and do this:

    <?
    Header("Location: catalog/index.php");
    ?>

    And that's working great!!

  8. #8
    Lurker
    Join Date
    Aug 2004
    Posts
    1
    Rep Power
    0


    Default

    Hello I am confused by this topic.

    I just installed OSC on a virtual server. My site is hockeyheadquarters.com
    OSC is in a folder called hockeyheadquarters.com/catalog
    the url works fine and I don't have an .htaccess file as instructed by the installation mannual.

    I suspect that my hosting company automatically configured the apache server to load index.php and there is no need for the .htaccess file.

    Can someone tell me if I am correct?

    Also, there is already an .htaccess file in that directory.. it came with OSC but it looks a lot different than what the manual instructs you to do.

    So if you were to follow the advice of the mannual then you would be overwriting the current .htaccess file

    That file reads as follows:

    Code:
    # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    # <Directory "/usr/local/apache/htdocs">
    #   AllowOverride Options
    # </Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)
    
    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers
    
    <IfModule mod_setenvif.c>
      <IfDefine SSL>
        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0
      </IfDefine>
    </IfModule>
    
    # Fix certain PHP values
    # (commented out by default to prevent errors occuring on certain
    # servers)
    
    #<IfModule mod_php4.c>
    #  php_value session.use_trans_sid 0
    #  php_value register_globals 1
    #</IfModule>
    The installation mannual says to create an .htaccess file that says this

    Code:
    DirectoryIndex index.php index.htm index.html
    What should I do???

    For now I have left the .htaccess file that came with OSC

    should I even bother putting in the one the mannual talks about?

    I am very confused.

    Eric B

  9. #9
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    Default

    .htaccess file can have N number of commands or directives that the webmaster desires to implement, so if u add the following line which does the redirection for you, it should not affect the working of the code above, check this out, http://httpd.apache.org/docs/mod/mod_dir.html

    also, i would check if your server has the default set to index.html or .php or what not 1st....and if it is...all u need to do is create the index.html and have a header redirect in it....

    quote from apache.org
    .htaccess files (or "distributed configuration files") provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.

  10. #10
    New Member
    Join Date
    Jul 2004
    Location
    Cromwell, CT
    Posts
    12
    Rep Power
    0


    Default

    Quote Originally Posted by ReginaStelling

    Make an index.php page in the root and do this:

    <?
    Header("Location: catalog/index.php");
    ?>

    And that's working great!!
    Thanks for adding that in here...I was having the same problem (Not knowing how to make index.php default) and that little snippet worked very easily for me too!! :P

Page 1 of 2 12 LastLast

Similar Threads

  1. Make us your homepage link - Does anyone know how to make?
    By markymrk22 in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-05-2005, 08:49 AM
  2. How to make a index.php page with a another name in OSMAX?
    By doumawis in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 03-01-2005, 01:16 AM
  3. A own oscomshop homepage+pages to make how?:: who nows?
    By doumawis in forum osCommerce 2.2 Modification Help
    Replies: 6
    Last Post: 02-01-2005, 10:32 AM
  4. Modifying my homepage with some items from the catalog pages
    By Zych in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 07-22-2004, 11:53 AM
  5. Default.php or index.php?
    By Dr_Evil in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 04-17-2003, 04:56 PM

Bookmarks

Posting Permissions

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