Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

domain name change


dan19

Recommended Posts

Hi, I change domain name , and when I tape new domain name it transfers me to:

Index of /

 

Name Last modified Size Description

 

[DIR] Parent Directory 08-Nov-2008 10:19 -

[DIR] _notes/ 07-Nov-2008 17:49 -

[DIR] awstats/ 07-Nov-2008 17:49 -

[DIR] catalog/ 07-Nov-2008 17:18 -

[DIR] cgi-bin/ 07-Nov-2008 17:51 -

[DIR] cp/ 07-Nov-2008 17:51 -

[DIR] images/ 07-Nov-2008 17:51 -

[TXT] login.html 07-Nov-2008 17:51 4k

 

To go to the front page of my website I have to tape after my new domain name +/catalog. Please can some one point me where is the problem . Thank you.

Link to comment
Share on other sites

Your site is missing an index page.

Copy this down

 

 

<?php

header( 'Location: http://www.YOURSTORE.com/catalog' ) ;

?>

 

paste it into note pad, change the YOURSTORE for your real store leaving /catalogon the end, and save it like this (include the quote marks also or it will save with .txt on the end and will not work)

"index.php"

 

Upload this file to your public_html directory,

it will redirect users to your catalog folder.

 

You could also just move the catalog up one level

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Your site is missing an index page.

Copy this down

 

 

<?php

header( 'Location: http://www.YOURSTORE.com/catalog' ) ;

?>

 

paste it into note pad, change the YOURSTORE for your real store leaving /catalogon the end, and save it like this (include the quote marks also or it will save with .txt on the end and will not work)

"index.php"

 

Upload this file to your public_html directory,

it will redirect users to your catalog folder.

 

You could also just move the catalog up one level

 

Thank you for replying , actually I am not missing the index.php. It redirects me to index.php when I tape www. mydomeinname.com/catalog, but I need to be redirect to index.php when I tape www. mydomainname.com. Thank you

Link to comment
Share on other sites

You are missing an index page, in your document root. Follow Nic's instructions and upload it to your document root - not the catalog directory. Unless there is a good reason not to, you should do as suggested and move the contents of the catalog directory, out of the catalog directory. Doing that, you won't have the problem anyway. You should also prevent directory listing, from your control panel.

Link to comment
Share on other sites

You are missing an index page, in your document root. Follow Nic's instructions and upload it to your document root - not the catalog directory. Unless there is a good reason not to, you should do as suggested and move the contents of the catalog directory, out of the catalog directory. Doing that, you won't have the problem anyway. You should also prevent directory listing, from your control panel.

 

Thank you it works fine now.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...