Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Domain name


Recommended Posts

When you install the store, it asks you in what directory you have the catalog. If you replace the default /catalog/ with /, then you will not have catalog in the URL.

 

I'm not sure of the exact configuration parameters, but you get rid of the default.php (or index.php) by modifying httpd.conf or .htaccess (on an Apache server) to default to default.php (the normal default is something like index.html).

 

Good luck,

Matt

Link to comment
Share on other sites

When you install the store, it asks you in what directory you have the catalog. If you replace the default /catalog/ with /, then you will not have catalog in the URL.

 

I'm not sure of the exact configuration parameters, but you get rid of the default.php (or index.php) by modifying httpd.conf or .htaccess (on an Apache server) to default to default.php (the normal default is something like index.html).

 

Good luck,

Matt[/quote

 

I did that, however I still have to put domainname/defult.php to see the store. I want to omit the default.php

Link to comment
Share on other sites

I'm not sure of the exact configuration parameters, but you get rid of the default.php (or index.php) by modifying httpd.conf or .htaccess (on an Apache server) to default to default.php (the normal default is something like index.html).
You did this? What did you put in .htaccess or the httpd.conf that is not working?

 

Good luck,

Matt

Link to comment
Share on other sites

I wantd to see if anybody knows how i can set my store up so that when you hit the domain name it the site comes out. Instead of having to write host/catalog/default.php

 

Sorry, I think I misunderstood your questio.

 

From Admin | Search Engine Friendly URLS - Turn this ON (true)

This may give the desired results.

ibandyop

Link to comment
Share on other sites

Why not set up a meta refresh on your index.html page? So when someone hits your domain name 'www.yourdomainname.com' they get redirected automatically to your shop homepage.

 

ie

 

in your head tags place this code

 

<meta http-equiv="refresh" content="1; url=catalog/default.php">

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Why not set up a meta refresh on your index.html page? So when someone hits your domain name 'www.yourdomainname.com' they get redirected automatically to your shop homepage.

 

ie

 

in your head tags place this code

 

<meta http-equiv="refresh" content="1; url=catalog/default.php">

 

Because then Google will not index you.

 

Google will not index any URL that the user can not return to Google with one click of the back button.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

I did that, however I still have to put domainname/defult.php to see the store. I want to omit the default.php

There used to be a section in the FAQ about changing the 'default.php' file name to 'index.php' which will produce the result you desire (as long as you don't also have an index.html file which takes precedence)

 

From Memory:

You need to change in /includes/application_top.php

define('FILENAME_DEFAULT', 'default.php');

define('FILENAME_DEFAULT', 'index.php');

 

Rename default.php to index.php and rename /includes/languages/english/default.php to index.php

Link to comment
Share on other sites

as long as you don't also have an index.html file which takes precedence

 

Actually, on my server, index.php takes precedence over index.html. I'm not sure if that's a special setting we have or something, though.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...