Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing /catalog in the address


abe_rudder

Recommended Posts

Hi, what would be the easiest way to get rid of the /catalog at the end of the address for my website?

I know it is the catalog folder which does this but would getting rid of the folder result in a lot of links being broken?

 

Is there anyway of placing a shortcut to the index page in in the same folder as the catalog folder? or would that cause security risks?

 

my website is at http://a2testshop.awardspace.com/catalog/

 

thanks for your help, Luke.

Link to comment
Share on other sites

Hi, what would be the easiest way to get rid of the /catalog at the end of the address for my website?

I know it is the catalog folder which does this but would getting rid of the folder result in a lot of links being broken?

 

Is there anyway of placing a shortcut to the index page in in the same folder as the catalog folder? or would that cause security risks?

 

my website is at http://a2testshop.awardspace.com/catalog/

 

thanks for your help, Luke.

 

 

you can give any name other than catalog. but for that you have to edit your configure.php file. there you will find some thing like

in catalog/includes/configure.php

  define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

  define('DIR_FS_CATALOG', 'C:/Program Files/EasyPHP 2.0b1/www/catalog/');

 

and in catalog/admin/includes/configure.php

 

  define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/EasyPHP 2.0b1/www/catalog/');
 define('DIR_WS_ADMIN', '/catalog/admin/');
 define('DIR_FS_ADMIN', 'C:/Program Files/EasyPHP 2.0b1/www/catalog/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', 'C:/Program Files/EasyPHP 2.0b1/www/catalog/');

 

rename all the catalog to the name of your new dir...

Link to comment
Share on other sites

thanks for the reply, do you think I could delete the catalog folder in this way? because if I rename it I'm still going to have the /(folder name)/ on the end of the domain name aren't I?

 

I would like to change my domain name to www.linzdesign.co.uk and it would be nice not to have the folder on the end to make it

www.linzdesign.co.uk/catalog.

 

Thanks again, Luke.

Link to comment
Share on other sites

thanks for the reply, do you think I could delete the catalog folder in this way? because if I rename it I'm still going to have the /(folder name)/ on the end of the domain name aren't I?

 

I would like to change my domain name to www.linzdesign.co.uk and it would be nice not to have the folder on the end to make it

www.linzdesign.co.uk/catalog.

 

Thanks again, Luke.

 

Ya if u rename it u'l b having /(folder name)/ on the end. if you want say www.mysite.com only then you have to copy all files from catalog under your root folder. and remove all catalog from the files just leaving / like

 

  define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/EasyPHP 2.0b1/www/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', 'C:/Program Files/EasyPHP 2.0b1/www/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', 'C:/Program Files/EasyPHP 2.0b1/www/');

Link to comment
Share on other sites

I've done what you said and I think there are still a lot of broken links? the whole website is white with no pictures or content!

Please help!

 

EDIT:

 

My bad! The configure files didn't upload because I had the permissions on read only. Worked great so thanks a lot!

 

Luke.

Link to comment
Share on other sites

Sorry, one more thing, on the breadcrumb it still says top>>catalog>> and they both go to the same place.

Is there a way of deleting the catalog one and change 'top' to 'home'?

 

EDIT:

 

Ah don't worry again, I found it here:

http://www.oscommerce.com/forums/index.php?sho...hl=right+column

 

so I think I'm all set on this front! Thanks a lot for your help.

 

Luke.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...