osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-06-2004, 06:28 PM
Member
 
Join Date: Apr 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReginaStelling
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 08-06-2004, 06:40 PM
Member
 
Join Date: Apr 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReginaStelling
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-06-2004, 07:59 PM
Lurker
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
delmarkdave
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-06-2004, 11:42 PM
Lurker
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
digitalbee
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-06-2004, 11:52 PM
Lurker
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
digitalbee
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 08-07-2004, 02:36 PM
Member
 
Join Date: Apr 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReginaStelling
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 08-08-2004, 08:46 AM
Member
 
Join Date: Apr 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReginaStelling
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 08-19-2004, 05:02 PM
Lurker
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ExtraB
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 08-24-2004, 12:24 PM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
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
Quote:
.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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 08-24-2004, 02:52 PM
New Member
 
Join Date: Jul 2004
Location: Cromwell, CT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
MysticalMoon
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 10:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax