grecopj Posted October 6, 2008 Posted October 6, 2008 Hi all, I have a question concerning moving my store to the root. Right now it's in /catalog directory. However I want to make it so the store comes up when a user goes to www.mydomain.com. I know I can move the files to the root and change the config files accordingly. However my issue is with my control panel for my hosting site. Right now if I enter in www.mydoamin.com/admin it takes me to my configuration page for my site. where I can enter e-mails etc. If I move my store to the root, then how do I access the configuration area of my store? The hosting company gave me the solution to use a .htaccess file. Is this a good thing or bad? How is that for search engines? Any suggestions would be greatly appreciated. thanks, Pete
FIMBLE Posted October 6, 2008 Posted October 6, 2008 Think it would be expected that if you move your store to root, then your admin would go with it. It would be no different than it is now Pete Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
grecopj Posted October 6, 2008 Author Posted October 6, 2008 Think it would be expected that if you move your store to root, then your admin would go with it.It would be no different than it is now Pete Nic Nick, The reason I am concerned is that if I move it to the root, then I would have a conflict with the www.mydomain.com/admin (which is what is used to access the web server control panel now) and www.mydomain.com/catalog/admin (that would change to www.mydomain.com/admin if I move it to the root.) Am I making sense?
FIMBLE Posted October 6, 2008 Posted October 6, 2008 Yes i see, all you need do is rename the oscommerce admin folder then in your admin / includes / configure.php change these two line to the new renamed admin folder define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/xxxx/public_html/admin/'); its the only changes you need to do Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
grecopj Posted October 7, 2008 Author Posted October 7, 2008 Yes i see, all you need do is rename the oscommerce admin folder then in your admin / includes / configure.php change these two line to the new renamed admin folder define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/xxxx/public_html/admin/'); its the only changes you need to do Nic Nic, So far I moved everything over and renamed the admin folder to admin_store. Everything seems to be working but I can not log into the admin section of the store. It just returns the log in dialog. I've included the config files here. Can you see if I am missing something? thank you so much for your help so far. ________________________________________________________________________________ ___________ admin_store/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://www.rainbowresearch.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.rainbowresearch.com'); define('HTTPS_CATALOG_SERVER', 'https://hs69.order-vault.net/rainbowresearch.com/'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/virtual/site124/fst/var/www/html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin_store/'); // absolute path required define('DIR_FS_ADMIN', '/home/virtual/site124/fst/var/www/html/admin_store/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/virtual/site124/fst/var/www/html/'); // 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', DIR_FS_ADMIN . 'backups/'); ________________________________________________________________________________ ______________________________ 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://www.rainbowresearch.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://hs69.order-vault.net/rainbowresearch.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.rainbowresearch.com'); define('HTTPS_COOKIE_DOMAIN', 'https://hs69.order-vault.net/rainbowresearch.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', 'https://hs69.order-vault.net/rainbowresearch.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', '/home/virtual/site124/fst/var/www/html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
FIMBLE Posted October 7, 2008 Posted October 7, 2008 Hiya I just tired http://www.rainbowresearch.com/admin_store and it was a broken link. You sure its the correct name Pete Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
grecopj Posted October 7, 2008 Author Posted October 7, 2008 HiyaI just tired http://www.rainbowresearch.com/admin_store and it was a broken link. You sure its the correct name Pete Nic, Sorry I forgot to mention that I have not changed the DNS entries yet on this. they have a live site at www.rainbowresearch.com but that is on an older server using MIVA. I've been changing my hosts file in order to configure this site. Here is the IP if that helps. 64.33.80.138/admin_store Pete
joep147 Posted October 7, 2008 Posted October 7, 2008 Nic, Sorry I forgot to mention that I have not changed the DNS entries yet on this. they have a live site at www.rainbowresearch.com but that is on an older server using MIVA. I've been changing my hosts file in order to configure this site. Here is the IP if that helps. 64.33.80.138/admin_store Pete you changed the path to admin, so now it has to be changed in the 64.33.80.138/admin_store/.htaccess aswell
grecopj Posted October 7, 2008 Author Posted October 7, 2008 you changed the path to admin, so now it has to be changed in the 64.33.80.138/admin_store/.htaccess aswell Nic, Thank You, Thank You, and Thank You again! Made the change all seems good so far.
grecopj Posted October 7, 2008 Author Posted October 7, 2008 your welcome Joep ;) Sorry Joep. I didn't look at the responder. I just was so excited it worked. My thanks to you! Pete
Recommended Posts
Archived
This topic is now archived and is closed to further replies.