Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing store directry


hovanfue

Recommended Posts

I installed osCommerce by vDeck of ipowerweb.

 

My store URL is

http://mydomain.com/osCommerce/catalog

 

I want to change this to

http://mydomain.com

 

I got some kind reply! Thank you very much.

According to these kind reply, I did change store directry successful, thank you very very much.

But the Site is not complete, I guess.

 

I did.

 

I moved all files in catalog to public_html

 

And edit 2 configure.php files.

 

One is

/public_html/includes/configure.php

 

define('DIR_WS_HTTP_CATALOG', '/osCommerce/catalog/')

==>define('DIR_WS_HTTP_CATALOG', '')

 

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

==>define('DIR_WS_HTTPS_CATALOG', '')

 

define('DIR_FS_CATALOG', 'home/mydomain/public_html/osCommerce/catalog/')

==>define('DIR_FS_CATALOG', 'home/mydomain/public_html/')

 

The other is

/public_html/admin/includes/configure.php

 

define('DIR_FS_DOCUMENT_ROOT', '/home/mydomain/public_html/osCommerce/catalog/'); // where the pages are located on the server

==>define('DIR_FS_DOCUMENT_ROOT', '/home/mydomain/public_html/'); // where the pages are located on the server

 

 

define('DIR_WS_ADMIN', '/osCommerce/catalog/admin/'); // absolute path required

==>define('DIR_WS_ADMIN', '/admin/'); // absolute path required

 

define('DIR_FS_ADMIN', '/home/mydomain/public_html/osCommerce/catalog/admin/'); // absolute

==>define('DIR_FS_ADMIN', '/home/mydomain/public_html/admin/'); // absolute

 

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

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

 

define('DIR_FS_CATALOG', '/home/mydomain/public_html/osCommerce/catalog/'); // absolute path required

==>define('DIR_FS_CATALOG', '/home/mydomain/public_html/'); // absolute path required

 

The URL is changed, but link in the page is not working.

Why???

 

Please help me once more.

Link to comment
Share on other sites

I installed osCommerce by vDeck of ipowerweb.

 

My store URL is

http://mydomain.com/osCommerce/catalog

 

I want to change this to

http://mydomain.com

 

I got some kind reply! Thank you very much.

According to these kind reply, I did change store directry successful, thank you very very much.

But the Site is not complete, I guess.

 

I did.

 

I moved all files in catalog to public_html

 

And edit 2 configure.php files.

 

One is

/public_html/includes/configure.php

 

define('DIR_WS_HTTP_CATALOG', '/osCommerce/catalog/')

==>define('DIR_WS_HTTP_CATALOG', '')

 

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

==>define('DIR_WS_HTTPS_CATALOG', '')

 

define('DIR_FS_CATALOG', 'home/mydomain/public_html/osCommerce/catalog/')

==>define('DIR_FS_CATALOG', 'home/mydomain/public_html/')

 

The other is

/public_html/admin/includes/configure.php

 

define('DIR_FS_DOCUMENT_ROOT', '/home/mydomain/public_html/osCommerce/catalog/'); // where the pages are located on the server

==>define('DIR_FS_DOCUMENT_ROOT', '/home/mydomain/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/osCommerce/catalog/admin/'); // absolute path required

==>define('DIR_WS_ADMIN', '/admin/'); // absolute path required

 

define('DIR_FS_ADMIN', '/home/mydomain/public_html/osCommerce/catalog/admin/'); // absolute

==>define('DIR_FS_ADMIN', '/home/mydomain/public_html/admin/'); // absolute

 

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

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

 

define('DIR_FS_CATALOG', '/home/mydomain/public_html/osCommerce/catalog/'); // absolute path required

==>define('DIR_FS_CATALOG', '/home/mydomain/public_html/'); // absolute path required

 

The URL is changed, but link in the page is not working.

Why???

 

Please help me once more.

 

 

 

Try... home/mydomain/public_html/catalog/....or... home/mydomain/public_html/. This is without the "Oscommerce" or without the "Oscommerce/catalog directory. If you did what you said you did... that is, "moved all files in catalog to public_html", then my guess is that my suggestions are your likely paths to your store.

 

I hope I understood your problem and provided you with the answer you needed.

Link to comment
Share on other sites

Try... home/mydomain/public_html/catalog/....or... home/mydomain/public_html/. This is without the "Oscommerce" or without the "Oscommerce/catalog directory. If you did what you said you did... that is, "moved all files in catalog to public_html", then my guess is that my suggestions are your likely paths to your store.

 

I hope I understood your problem and provided you with the answer you needed.

 

 

BTW, if you want your store to be www.mydomain.com, your path must be: home/mydomain/public_html/ (meaning all the files in the directory shared with your index.html or index.php file must be placed in your root directory). Be careful as to what is meant by "mydomain". In all of my stores, the "mydomain" part is actually truncated (for example, instead of "mydomain", it is "mydom"). This is at least how a couple of hosts I know have it set up. Yours may be different. Simply ask your host provider or review this information in the Help Center section of your host provider's website. I'm sure its a commonly asked question. You can also likely find the answer by fishing around in your Control Panel of your website.

Link to comment
Share on other sites

Good chance that you have a index.html and that is where the web site looking at the first.Rename the index.html to index.old and then yor browser should see the index.php

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...