Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Home Page


Rach_el

Recommended Posts

How can I make the catalog/index.php my defualt home page.?

My default page is currently index.html

 

Any help greatly appreciated :rolleyes:

What kind of server r u running? IIS or Apache?

By the way u can rename index.html to something else (like index2.html) this way u can make index.php default home page

Link to comment
Share on other sites

There's a couple ways to do it. Like activeweb said, you could simply rename your .html file to something else and then your index.php file will become your default home page.

 

If you want to keep index.html the same file name but want index.php to be your home page do this:

 

1. Create a new file in your root directory and give it the name .htaccess (if you don't already have that file - if you already have that file, simply open it and do the following).

 

2. Open your .htaccess file and enter this line of code in it:

 

DirectoryIndex index.php index.html

 

3. Save

 

This should now make index.php your home page without the need of renaming any files.

Link to comment
Share on other sites

I've had a few wines now so I could be wrong but it seems to me this thread is so far missing the point.

 

I understand the poster to be saying (and please correct me if I'm wrong)

 

My site currently loads www.mysite.com/index.html

 

and my shop currently loads as www.mysite.com/catalog/index.php

 

What I want is ..

 

For people going to www.mysite.com to see my shop front.

 

If I am wrong please accept my apologies .. if not .. read on ..

 

Move all of the files in /catalog to your root directory (public_html probably)

 

You then need to alter two configure.php files ..

 

One is in includes the other in admin/includes

 

Find all instances of catalog/ and delete them .. I'll clarify that ..

 

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

would become ..

 

define('DIR_WS_HTTPS_CATALOG', '/');

 

Hope that helps or at least makes some sense.

Link to comment
Share on other sites

I've had a few wines now so I could be wrong but it seems to me this thread is so far missing the point.

 

I understand the poster to be saying (and please correct me if I'm wrong)

 

My site currently loads www.mysite.com/index.html

 

and my shop currently loads as www.mysite.com/catalog/index.php

 

What I want is ..

 

For people going to www.mysite.com to see my shop front.

 

If I am wrong please accept my apologies .. if not .. read on ..

 

Move all of the files in /catalog to your root directory (public_html probably)

 

You then need to alter two configure.php files ..

 

One is in includes the other in admin/includes

 

Find all instances of catalog/ and delete them .. I'll clarify that ..

 

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

would become ..

 

define('DIR_WS_HTTPS_CATALOG', '/');

 

Hope that helps or at least makes some sense.

 

 

 

Try this : Make a new file index.php and place this code in it, obviously change your site name and place it directly into the root folder. It will then redirect the user to your catalog page......

 

<?php

header('Location:http://www.hartsphoto.co.za/catalog');

?>

 

Dave

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...