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

index.html the default page help

This is a discussion on index.html the default page help within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; guys, I'm new to oscommerce I have installed it and set up all successfuly, however I have problem with index.html ...

      
  1. #1
    New Member
    Join Date
    Jan 2005
    Posts
    14
    Rep Power
    0


    Default index.html the default page help

    guys, I'm new to oscommerce I have installed it and set up all successfuly, however I have problem with index.html page, my server direct any http enquiry to the default page index.html which has nothing on, how I can change this so it load oscommerce default page which I assume it is index.php or catalog.php right.

    any comments appreciated.

  2. #2
    New Member
    Join Date
    Jan 2005
    Posts
    14
    Rep Power
    0


    Default RE: index.html the default page help

    I know you can use redirection method.
    by typing this in the index.html file, however I don't like redirection I would like all viewers to see /catalog page instead, which file should I edit to make it happen?


    <html>
    <head>
    <META Http-equiv="refresh" Content="0; Url=https://www.yoursite.com/catalog">
    <title>
    Transfering to site. (Enter your own title here)
    </title>
    </head>
    <body bgcolor=ffffff>
    <center>
    <br>
    <br>
    <b>Please wait while you are transfered to our site</b><br>
    Or click <a href="http://www.yoursite.com/catalog">http://www.yoursite.com/catalog</a>
    </center>
    </body>
    <html>

    any reply appreciated.

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: index.html the default page help

    use .htaccess:

    DirectoryIndex index.php index.html

    Or to redirect to the catalog dir:

    DirectoryIndex catalog/index.php
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    New Member
    Join Date
    Jan 2005
    Posts
    14
    Rep Power
    0


    Default RE: index.html the default page help

    I did use .htaccess and put this entry in it DirectoryIndex index.php index.html still didn't work

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: index.html the default page help

    It needs to be in the base public_html dir.

    If you have osCMax installed in the catalog dir, you need to use the second one example:

    DirectoryIndex catalog/index.php
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    New Member
    Join Date
    Jan 2005
    Posts
    14
    Rep Power
    0


    Default RE: index.html the default page help

    NO Michael I have oscommerce 2.2 installed but I have loaded the catalog in public_html as /public_html/catalog/ which contains catalog and admin folders plus all files, so another word I didn't install it on the root / but sub folder with the data base set up and everything, if I have to move all folders and files to root will I lose url connections and database link, what would you suggest should i istall it again from the root directory or it would be all right if I just moved all the files to root, what do you suggest mate.

  7. #7
    Active Member developer_x's Avatar
    Join Date
    Nov 2004
    Location
    Digital Infoway
    Posts
    109
    Rep Power
    0


    Default RE: index.html the default page help

    Hi,
    If you just move all the folders n files to the root, you will obviously lose url and database links. The links can be corrected by modifying the configure.php file. However as you are a newbiew, I would suggest you to reinstall the pacakge to the root. It won't take much time and effort to do that.

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: index.html the default page help

    Ok, maybe I am not understanding you, but what I suggest in htaccess:

    DirectoryIndex catalog/index.php

    That needs to be put in an .htaccess file the public_html root dir, not your shopping cart. What the above statement does is automatically forward all requests from http://yoursite.com to http://yoursite.com/catalog/index.php. This is the easiest fix there is. 2 minutes and it is done.

    From what you are asking, that does EXACTLY what you want. Redirect all traffic to your catalog/index.php automatically without having to move ANY files at all.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    Member
    Join Date
    Nov 2004
    Posts
    89
    Rep Power
    0


    Default RE: index.html the default page help

    Or even easier, from cPanel set up a redirect. Then you don't need to edit any files.

  10. #10
    Lurker
    Join Date
    Dec 2004
    Posts
    3
    Rep Power
    0


    Default Thanks.

    Thanks for the great information on this! It sorted the same problem for me!

Page 1 of 2 12 LastLast

Similar Threads

  1. using header/index/footer.html for a own template
    By doumawis in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 02-06-2005, 03:14 PM
  2. how to add boxes to index.html
    By atech in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 11-15-2004, 02:25 PM
  3. adding HTML to the center index page?
    By khayyamg in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 08-04-2004, 07:06 PM
  4. Default.php or index.php?
    By Dr_Evil in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 04-17-2003, 05:56 PM
  5. Default.php/index.php
    By ativan in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 11-19-2002, 04:27 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
  •