Guest Posted August 4, 2006 Share Posted August 4, 2006 Hi all, I own a business called Oz Elec4less. I have got my site up and running but for people to see my shop home page they have to type in www.ozelec4less.com/osc this looks a bit dodgy and people never remember the /osc I have tried to do what another memeber said about changing a file from true to false but it did not work. Please see for yourself go to www.ozelec4less.com and youwill see that it comes up with index and /osc please help Link to comment Share on other sites More sharing options...
matrix2223 Posted August 4, 2006 Share Posted August 4, 2006 install chemos contib called Ultimate SEO URLs http://www.oscommerce.com/community/contri...timate+seo+urls Link to comment Share on other sites More sharing options...
starcad Posted August 4, 2006 Share Posted August 4, 2006 Hi all, I own a business called Oz Elec4less. I have got my site up and running but for people to see my shop home page they have to type in www.ozelec4less.com/osc this looks a bit dodgy and people never remember the /osc I have tried to do what another memeber said about changing a file from true to false but it did not work. Please see for yourself go to www.ozelec4less.com and youwill see that it comes up with index and /osc please help A more simplier fix is to just add an html index file with a redirect in the meta tag to the directory. I personally like a javascript redirect as it is easier for me like this. <html> <head> <script language="javascript" type="text/javascript">; <!-- window.location="http://www.yoursite.com/catalog/"; // --> </script> <title>Welcome to yoursite.com ( or what ever )</title> </head> <body> </body> </html> Just change the code above and save it as index.html and add it to the same directory as "ocs" Link to comment Share on other sites More sharing options...
matrix2223 Posted August 4, 2006 Share Posted August 4, 2006 ok, Ive never heard of doing it that way but if it works, it works Link to comment Share on other sites More sharing options...
jpweber Posted August 4, 2006 Share Posted August 4, 2006 Yeah, or just put a redirect in from your cpanel if you have a host. Just redirect .... http://www.ozelec4less.com ----> http://www.ozelec4less.com/osc ........... Then when they type in ozelec4less it will automatically go to the osc store. If this doesn't work, then I'd do what starcad said. Make a file and call it index.html. Then on the index.html, just put a redirect so it automatically redirects (in 0 seconds) to your osc site. J Jason Simple 1-2-3 Intructions on how to get, install and configure SSL The Google Sandbox explained Simple to follow instructions on how to change the look of your OSC How To Make A Horrible OSC Website my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ... Link to comment Share on other sites More sharing options...
boxtel Posted August 4, 2006 Share Posted August 4, 2006 A more simplier fix is to just add an html index file with a redirect in the meta tag to the directory. I personally like a javascript redirect as it is easier for me like this. <html> <head> <script language="javascript" type="text/javascript">; <!-- window.location="http://www.yoursite.com/catalog/"; // --> </script> <title>Welcome to yoursite.com ( or what ever )</title> </head> <body> </body> </html> Just change the code above and save it as index.html and add it to the same directory as "ocs" if you want spiders to index your site, js redirects are a bad idea. Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted August 4, 2006 Share Posted August 4, 2006 stil dont understand if you have msn add me [email protected] it is very important. I am going to eat now will be abck in 30minutes Link to comment Share on other sites More sharing options...
muttsnuts Posted August 4, 2006 Share Posted August 4, 2006 Basically you should have your shop installed in the root directory of your server then re-directs etc will not be an issue. Move everything out of the osc folder a place them in the root folder, then you should only have to edit the 2 config files and you are sorted. Everyone just need to type your url without any osc and no problems with search engine problems. I would post or invite suggestions as there may be more to it that just editting the 2 config files but I don't think so. Link to comment Share on other sites More sharing options...
Guest Posted August 5, 2006 Share Posted August 5, 2006 i tried this but no images or links worked Link to comment Share on other sites More sharing options...
Guest Posted August 6, 2006 Share Posted August 6, 2006 i have moved my osc file to /web and have changed both config files. This is copy of the code from web/includes/configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://ozelec4less.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure.concentric.com/ozelec4less.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'ozelec4less.com'); define('HTTPS_COOKIE_DOMAIN', 'secure.concentric.com'); define('HTTP_COOKIE_PATH', '/web/'); define('HTTPS_COOKIE_PATH', '/ozelec4less.com/'); define('DIR_WS_HTTP_CATALOG', '/web/'); define('DIR_WS_HTTPS_CATALOG', '/web/'); 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', 'pub/'); define('DIR_FS_CATALOG', '/web/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', '207.155.253.226'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Now this is the code from admin/includes/config.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://ozelec4less.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://ozelec4less.com'); define('HTTPS_CATALOG_SERVER', 'https://secure.concentric.com/ozelec4less.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/web/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/web/admin/'); // absolute path required define('DIR_FS_ADMIN', '/web/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/web/'); // absolute path required define('DIR_FS_CATALOG', '/web/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', '/files/osc/backups/'); // define our database connection define('DB_SERVER', '207.155.253.226'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> please help because when you type in www.ozelec4less.com links and images dont work HELP Link to comment Share on other sites More sharing options...
mtechama Posted August 6, 2006 Share Posted August 6, 2006 Hey you shouldn't post your configure.php file becuase you gave your Database information. Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted August 6, 2006 Share Posted August 6, 2006 Try this: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://ozelec4less.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure.concentric.com/ozelec4less.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'ozelec4less.com'); define('HTTPS_COOKIE_DOMAIN', 'secure.concentric.com'); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', '/ozelec4less.com/'); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_CATALOG', ''); 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', 'pub/'); define('DIR_FS_CATALOG', ''); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 6, 2006 Share Posted August 6, 2006 moderator please delete my post with code asap Link to comment Share on other sites More sharing options...
Guest Posted August 6, 2006 Share Posted August 6, 2006 i am confused someone please help Link to comment Share on other sites More sharing options...
mtechama Posted August 6, 2006 Share Posted August 6, 2006 i am confused someone please help copy and past the code I give ya and try it. that is for /includes/configure.php Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 6, 2006 Share Posted August 6, 2006 what would i put for admin Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.