Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to make default.php into index.html


jloyzaga

Recommended Posts

my current site is www.arkmusic.com.au and I have an intro page. When we go live I want to remove that. the problem is that the ecommerce site is located in a subdirectory and I want to make that the pages to be seen when the user puts www.arkmusic.com.au on the url address.

 

I could always move all the catalog in the root directory and change the config.php file but is tere an easier way?

Link to comment
Share on other sites

the ecommerce site is located in a subdirectory and I want to make that the pages to be seen when the user puts www.arkmusic.com.au on the url address.

Are you on Apache ? Then you can use a redirect. Put something like this in a .htaccess file at the root:

RewriteEngine on

RewriteRule   ^$  /catalog/  [R]

Christian Lescuyer

Link to comment
Share on other sites

So what I'll do is move all the catalog directory into the directory above it.

keep the index.html file as is until I go live and when I go live, rename it to index_old.html , default.php to index.html and change

 

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 

to

define('DIR_WS_CATALOG', ''); // absolute path required ?

 

and thats all?

Link to comment
Share on other sites

Matti,

Just curious, I'm running www.turningbase.com and am looking at ways to redirect www.turningbase.com.au to the www.turningbase.com domain. If I redirect this at a domain level (i.e. Through registrar or host) will this still be seen as a redirect by most major browsers?

 

Main thing I'm look for is to get listed in Google (When Australian Sites button is clicked) and to be more recognisable as an Australian store to visitors.

 

I was thinking (idea stage) of running two actually domains, but linking them to the same backend... or I guess an easier way would be to change

HTTP_SERVER = "www.turningbase.com"

to

HTTP_SERVER = HTTP_HOST

 

So the domain would remain the same regardless of which .com or .com.au they entered on.

 

Any ideas or thoughts you can offer would be great...

 

Thanks,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

define('DIR_WS_CATALOG', ''); // absolute path required ?

 

and thats all?

I have mine HTTP_SERVER and HTTPS_SERVER set without the trailing "/" and put the "/" in the DIR_WS_CATALOG.

 

Not sure if it matter all that much, but I've never had a problem with the way I've done it.

 

HTH,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

sorry Tony - need a for instance -

 

you mean you would set the http server as..

 

define('HTTP_SERVER', 'http://arkmusic.com.au');

define('HTTPS_SERVER', 'https://arkmusic.com.au')

 

and therefore

define('DIR_WS_CATALOG', '/')

 

is this correct?

Link to comment
Share on other sites

first back up yer files!

 

rename default.php to index.php

rename /includes/{language]/default.php to index.php

 

depending on the version:

either

application_top.php

or files.php

find

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

change to

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

Thats it.

 

when you move this to /

you will also need to change your paths in

includes/config.php

admin/includes/config.php

 

subdirectory:

define('HTTP_SERVER', 'http://www.site/catalog'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'http://www.site/catalog'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 

root:

define('HTTP_SERVER', 'http://www.site/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'http://www.site/); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/'); // absolute path required

Link to comment
Share on other sites

This from one of my sites.

I do 'em all this way. BTW this one is a subdomain.

So if your site in going to be in the root dir, then:

'http://www.yersite.com'

 

 

configure.php

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://rma.cnw-designs.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://rma.cnw-designs.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', '/home/cnw-desi/public_html/rma');

define('DIR_FS_CATALOG', '/home/cnw-desi/public_html/rma/');

 

change in admin also

 

aplication_top.php

about line 64

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

 

Don;t forget to rename default.php to index.php

DO NOT NAME IT index.html

Link to comment
Share on other sites

Will, did as you said and still problems -www.arkmusic.com.au/index/php

 

The error is here:

 

 

root:

define('HTTP_SERVER', 'http://www.site/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'http://www.site/); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/'); // absolute path required

 

 

Should be:

 

 

 

define('HTTP_SERVER', 'http://www.site'); // eg, http://localhost - should not be empty for productive servers

 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

 define('ENABLE_SSL', false); // secure webserver for checkout procedure?

 define('DIR_WS_CATALOG', '/'); // absolute path required

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...