jloyzaga Posted August 23, 2003 Posted August 23, 2003 my current site is www.arkmusic.com.au and I have an intro page. When we go live I want to remove that. the problem is that the ecommerce site is located in a subdirectory and I want to make that the pages to be seen when the user puts www.arkmusic.com.au on the url address. I could always move all the catalog in the root directory and change the config.php file but is tere an easier way?
Guest Posted August 23, 2003 Posted August 23, 2003 Yes, but the way you say is the best - redirects can drop your search rankings dramatically
Christian Lescuyer Posted August 23, 2003 Posted August 23, 2003 the ecommerce site is located in a subdirectory and I want to make that the pages to be seen when the user puts www.arkmusic.com.au on the url address. Are you on Apache ? Then you can use a redirect. Put something like this in a .htaccess file at the root: RewriteEngine on RewriteRule ^$ /catalog/ [R] Christian Lescuyer
jloyzaga Posted August 23, 2003 Author Posted August 23, 2003 I'll do as Johnson suggests - its the search rankings thats important for me Thanks guys!!!
jloyzaga Posted August 23, 2003 Author Posted August 23, 2003 So what I'll do is move all the catalog directory into the directory above it. keep the index.html file as is until I go live and when I go live, rename it to index_old.html , default.php to index.html and change define('DIR_WS_CATALOG', '/catalog/'); // absolute path required to define('DIR_WS_CATALOG', ''); // absolute path required ? and thats all?
TB Posted August 23, 2003 Posted August 23, 2003 Matti, Just curious, I'm running www.turningbase.com and am looking at ways to redirect www.turningbase.com.au to the www.turningbase.com domain. If I redirect this at a domain level (i.e. Through registrar or host) will this still be seen as a redirect by most major browsers? Main thing I'm look for is to get listed in Google (When Australian Sites button is clicked) and to be more recognisable as an Australian store to visitors. I was thinking (idea stage) of running two actually domains, but linking them to the same backend... or I guess an easier way would be to change HTTP_SERVER = "www.turningbase.com" to HTTP_SERVER = HTTP_HOST So the domain would remain the same regardless of which .com or .com.au they entered on. Any ideas or thoughts you can offer would be great... Thanks, Tony "The price of success is perseverance. The price of failure comes much cheaper."
TB Posted August 23, 2003 Posted August 23, 2003 define('DIR_WS_CATALOG', ''); // absolute path required ? and thats all? I have mine HTTP_SERVER and HTTPS_SERVER set without the trailing "/" and put the "/" in the DIR_WS_CATALOG. Not sure if it matter all that much, but I've never had a problem with the way I've done it. HTH, Tony "The price of success is perseverance. The price of failure comes much cheaper."
Guest Posted August 23, 2003 Posted August 23, 2003 Try this: http://httpd.apache.org/docs/misc/rewriteguide.html
TB Posted August 23, 2003 Posted August 23, 2003 Looks interesting... :? Thanks Matti! Tony "The price of success is perseverance. The price of failure comes much cheaper."
jloyzaga Posted August 23, 2003 Author Posted August 23, 2003 sorry Tony - need a for instance - you mean you would set the http server as.. define('HTTP_SERVER', 'http://arkmusic.com.au'); define('HTTPS_SERVER', 'https://arkmusic.com.au') and therefore define('DIR_WS_CATALOG', '/') is this correct?
TB Posted August 23, 2003 Posted August 23, 2003 Joe, That's it mate... you got it in one. Tony "The price of success is perseverance. The price of failure comes much cheaper."
jloyzaga Posted August 23, 2003 Author Posted August 23, 2003 no need to change anything else I guess - thanks for the help guys!!!
jloyzaga Posted August 23, 2003 Author Posted August 23, 2003 maybe I can make it the top logo/banner? I do nice splash pages - wait till you see the next one!!
Guest Posted August 23, 2003 Posted August 23, 2003 first back up yer files! rename default.php to index.php rename /includes/{language]/default.php to index.php depending on the version: either application_top.php or files.php find define('FILENAME_DEFAULT', 'default.php'); change to define('FILENAME_DEFAULT', 'index.php'); Thats it. when you move this to / you will also need to change your paths in includes/config.php admin/includes/config.php subdirectory: define('HTTP_SERVER', 'http://www.site/catalog'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://www.site/catalog'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // absolute path required root: define('HTTP_SERVER', 'http://www.site/'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://www.site/); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/'); // absolute path required
jloyzaga Posted August 24, 2003 Author Posted August 24, 2003 Will, did as you said and still problems -www.arkmusic.com.au/index/php
Guest Posted August 24, 2003 Posted August 24, 2003 This from one of my sites. I do 'em all this way. BTW this one is a subdomain. So if your site in going to be in the root dir, then: 'http://www.yersite.com' configure.php // Define the webserver and path parameters// * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://rma.cnw-designs.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://rma.cnw-designs.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/'); // absolute path required 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', '/home/cnw-desi/public_html/rma'); define('DIR_FS_CATALOG', '/home/cnw-desi/public_html/rma/'); change in admin also aplication_top.php about line 64 define('FILENAME_DEFAULT', 'index.php'); Don;t forget to rename default.php to index.php DO NOT NAME IT index.html
Guest Posted August 25, 2003 Posted August 25, 2003 Will, did as you said and still problems -www.arkmusic.com.au/index/php The error is here: root:define('HTTP_SERVER', 'http://www.site/'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://www.site/); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/'); // absolute path required Should be: define('HTTP_SERVER', 'http://www.site'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/'); // absolute path required
Recommended Posts
Archived
This topic is now archived and is closed to further replies.