Zen Cart Logo
Forums / General Questions / redirects in htacess help

redirects in htacess help

Views: 1,572

Results 21 to 26 of 26
4 Mar 2016, 11:33 AM
#21
mydakota avatar

mydakota

New Zenner

Join Date:
Feb 2016
Posts:
58
Plugin Contributions:
0

redirects in htacess help

No the ultimate url add on thing was already installed by default just read It can cause issue so my question was does it cause issues and can it be removed from ZenCart I wouldn't even know what it's settings do it was just there in the admin menu. And seen reference to it in the .htaccess file if it dosnt cause issues with redirects I guess it dosnt mater.
I'm away from pc at the mo I'll have a look at that extra code you mentioned that shouldn't be there ASAP. Also the shopping cart and site works fine with out modifying the .htaccess. But when the code I had working was put in the redirects was working except when I click on a product and add to cart just took me to a black page saying your cart is empty. So yes it worked before just not after the redirects take effect .

4 Mar 2016, 11:50 AM
#22
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: redirects in htacess help

Design75:

This should be in your configure.php files not in the .htaccess
Specifically the admin/includes/configure.php file

mydakota:

it is the .htacess fill in root i am meant to edit or is it some other one sorry i am a bit new to this sorry for being dumb
This is a good question to ask, and understood that trying to resolve an issue; however, one thing at a time... In this thread alone there have been multiple "goals" that have popped up instead of targeting a single issue. Overall the issue is things related to getting to the base of your site from the internet. Thus, to resolve the original issue of forcing either www. or removal of that is to be addressed in the root of your site through .htaccess or a similar action (redirect) that is setup through your host's cPanel.

mydakota:

yes that is in my config file not my .htaccess file lol
Again, that should specifically be the admin/includes/configure.php file. Was going to comment earlier, but please try to remain specific as this is or could be read by multiple people and finding the "config file" could prove to be troublesome. With regards to having been in the .htaccess file, there was code in the last post of the first page that showed the four defines which are applicable to the admin directory.

kobra:

Probably need to change the red highlighted line

define('HTTP_SERVER', 'http://www.anarchyangels.net');
define('HTTPS_SERVER', 'https://www.anarchyangels.net');
define('HTTP_CATALOG_SERVER', 'http://www.anarchyangels.net');
define('HTTPS_CATALOG_SERVER', 'https://www.anarchyangels.net');

> to
> ```
define('HTTP_CATALOG_SERVER', 'http[B]s[/B]://www.anarchyangels.net');

Looks like we cross posted

What you posted last is fine

Only if the site was using https and more specifically when trying to use one of the specific payment modules. Further this should have been only applied to the admin/includes/configure.php file with regards to having all four defines. Doing so without having SSL enabled or installed will cause browser "security" messages because https: won't resolve properly.

mydakota:

So even though it says define http I put

define('HTTP_CATALOG_SERVER', 'https://www.anarchyangels.net');
In its place also I'm not currently using https if that makes any difference

It does make a difference because if not using https (anywhere) then this will cause you problems when accessing your admin.

mydakota:

ok so i changed that to https and now this one works

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^www\.anarchyangels\.net RewriteRule (.*) http://www.anarchyangels.net/$1 [R=301,L] </IfModule> ``` > but this one below still doesn't work lol I'm sure it shouldn't be this hard lol is there anything wrong with the code that seems to be working vs > this one > > ``` RewriteEngine On RewriteCond %{HTTP_HOST} !^www.anarchyangels.net$ RewriteRule ^(.*)$ http://www.anarchyangels.net/$1 [R=301] ```

mydakota:

omg now its not working either same shopping cart issue
think ill just have to give up starting to make me mad lol :(
So one thing you have to realize regarding the last two posts is that the "internet" takes a smidge of time to catch up with changes made. Another reason to make one change at a time rather than jumping around all over the place.

With regards to inherent differences between the two:
Notice the first and last lines in the below.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.anarchyangels\.net
RewriteRule (.*) http://www.anarchyangels.net/$1 [R=301,L]
</IfModule> 

You would want to try to incorporate those into the second version. Also, the two lines that follow the first.
Then there are some "flags" in (or not in) the second that may be causing an issue (the periods are not escaped with the forward slash, and the string ends with a $ which actually forces a tighter verification than the first htaccess. Then there is the last line which is constructed slightly different. So my recommendation would be:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.anarchyangels\.net$
RewriteRule (.*) http://www.anarchyangels.net/$1 [R=301,L]
</IfModule> 

mydakota:

from what i read and have found some plugin called Ultimate URLs i have no idea what this is but sound like this could be causing my problems
do i need this plugin and can i remove it :)

This plugin which in this situation if has been installed to "rectify" this issue won't do that. If the plugin existed at the onset of the problem, then this is also one reason the posting tips suggest identifying what plugins are installed. So... This plugin offers the ability to have "pretty" URIs. Instead of site (dot) com/index.php?main_page=product_info&products_id=5, one would have something like site (dot) com/Name-of-my-product-5

It is not essential to site operation otherwise ZC wouldn't be available for anyone to use/this would be a built in product. If it is installed the next question would be is it enabled? (admin screen, assuming that it still is accessible after all of these various edits, configuration dropdown Ultimate URLs and then there should be an enabled option.) Turn it off at least until your main issue is resolved. Then if wanting to add such capability to your site, then discuss the necessary additions to your .htaccess file...

My suggestion at this point. Post the contents of your includes/configure.php, admin/includes/configure.php and .htaccess all at once so that they can be reviewed and direct guidance provided rather than this back and forth and constant modification that is going on....

4 Mar 2016, 11:56 AM
#23
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: redirects in htacess help

mydakota:

No the ultimate url add on thing was already installed by default just read It can cause issue so my question was does it cause issues and can it be removed from ZenCart I wouldn't even know what it's settings do it was just there in the admin menu. And seen reference to it in the .htaccess file if it dosnt cause issues with redirects I guess it dosnt mater.
I'm away from pc at the mo I'll have a look at that extra code you mentioned that shouldn't be there ASAP. Also the shopping cart and site works fine with out modifying the .htaccess. But when the code I had working was put in the redirects was working except when I click on a product and add to cart just took me to a black page saying your cart is empty. So yes it worked before just not after the redirects take effect .

How was it installed "by default"? Again posting tips imply to identify how this version of ZC came to be. ZC as available from this site (https://www.zen-cart.com) does not include Ultimate URLs. If the site were upgraded from some other version, then this seems like something an "upgrader" added, if the site existed before you were turned to it, then similar situation that someone else added it. etc... This type information in the future of resolving issues is extremely helpful as no one else is really able to see what you see, without being given permissions/logins etc... Think of it as trying to describe a situation to a blind person (we're all blind to what you have on your site for the most part until a web address is provided, and then only able to see the results of actions not what code is causing the action or other things like error log files.)

One last edit... Ultimate URLs can cause issues if installed incorrectly.... So can any other plugin.... But further, it doesn't "fix" a problem, it adds capability/functionality... In this case, it has been installed incorrectly... Removing it could cause difficulty as well, but make a backup of your current site before trying...

The shopping cart empty issue typically is related to sessions... That's an entirely different topic/issue than the use or absence of www.

Again... One thing at a time.

Understand about being away etc... The forum is here 24/7 and someone ought to be available to help/assist if they can/want to. :) Until then, have a good day!

4 Mar 2016, 12:26 PM
#24
mydakota avatar

mydakota

New Zenner

Join Date:
Feb 2016
Posts:
58
Plugin Contributions:
0

Re: redirects in htacess help

Ok well I'm only new to ZenCart I payed $49 for it I know the you can get it free as it is open source but the one I got was meant to be basically done but so far it seems to be full of bugs and far from done lol think it's called Trego or something like that I didn't realise if I brought a modified version there was no support I guess I'll have to give up on redirects or pay someone but not sure if using both www and non www really matters I was just trying to keep Google happy

http://themeforest.net/item/trego-premium-responsive-zencart-theme/7063042

4 Mar 2016, 1:37 PM
#25
mydakota avatar

mydakota

New Zenner

Join Date:
Feb 2016
Posts:
58
Plugin Contributions:
0

Re: redirects in htacess help

admin config

<?php
/**
 * @package Configuration Settings circa 1.5.4
 * @copyright Copyright 2003-2014 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * File Built by zc_install on 2016-02-06 11:44:27
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

/**
 * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
 * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
 */
  define('HTTP_SERVER', 'http://anarchyangels.net');
  define('HTTPS_SERVER', 'https://anarchyangels.net');
  define('HTTP_CATALOG_SERVER', 'http://anarchyangels.net');
  define('HTTPS_CATALOG_SERVER', 'https://anarchyangels.net');

  // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
  define('ENABLE_SSL_ADMIN', 'false');

  // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
  define('ENABLE_SSL_CATALOG', 'false');

  define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
  define('DIR_FS_ADMIN', preg_replace('#.includes$#', '', realpath(dirname(__FILE__) . '/../') . '/'));
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/anarchy2/public_html/');

  //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
  define('DIR_FS_LOGS', '/home/anarchy2/public_html/logs');

  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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_CHARSET', 'utf8');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'anarchy2_dakota');
  define('DB_SERVER_PASSWORD', 'Justj33p');
  define('DB_DATABASE', 'anarchy2_dakota');

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home/anarchy2/public_html/cache');


// Define the webserver and path parameters
  // Main webserver: eg-http://www.your_domain.com - 
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   */
// EOF

main includes config

<?php

/**

 * counter.php

 *

 * @package general

 * @copyright Copyright 2003-2011 Zen Cart Development Team

 * @copyright Portions Copyright 2003 osCommerce

 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

 * @version $Id: counter.php 18695 2011-05-04 05:24:19Z drbyte $

 * @private

 */

if (!defined('IS_ADMIN_FLAG')) {

  die('Illegal Access');

}

if (isset($_SESSION['session_counter']) && $_SESSION['session_counter'] == true) {

  $session_counter = 0;

} else {

  $session_counter = 1;

  $_SESSION['session_counter'] = true;

}

$date_now = date('Ymd');

$counter_query = "select startdate, counter, session_counter from " . TABLE_COUNTER_HISTORY . " where startdate='" . $date_now . "'";

$counter = $db->Execute($counter_query);

$sql = "INSERT IGNORE INTO " . TABLE_COUNTER_HISTORY . " (startdate, counter, session_counter) values ('" . $date_now . "', '1', '1')";

$db->Execute($sql);

$sql = "SELECT * FROM "  . TABLE_COUNTER_HISTORY . " WHERE startdate = '" .  $date_now . "' AND counter = 1 AND session_counter = 1 LIMIT 1";

$result = $db->execute($sql);

if ($result->recordCount() <=0 || $counter->RecordCount() > 0 )

{

  $counter_startdate = $counter->fields['startdate'];

  $counter_now = ($counter->fields['counter'] + 1);

  $session_counter_now = ($counter->fields['session_counter'] + $session_counter);

  $sql = "update " . TABLE_COUNTER_HISTORY . " set counter = '" . $counter_now . "', session_counter ='" . $session_counter_now . "' where startdate='" . $date_now . "'";



  $db->Execute($sql);

}



$counter_query = "select startdate, counter from " . TABLE_COUNTER;

$counter = $db->Execute($counter_query);

if ($counter->RecordCount() <= 0) {

  $date_now = date('Ymd');

  $sql = "insert into " . TABLE_COUNTER . " (startdate, counter) values ('" . $date_now . "', '1')";

  $db->Execute($sql);

  $counter_startdate = $date_now;

  $counter_now = 1;

} else {

  $counter_startdate = $counter->fields['startdate'];

  $counter_now = ($counter->fields['counter'] + 1);

  $sql = "update " . TABLE_COUNTER . " set counter = '" . $counter_now . "'";

  $db->Execute($sql);

}



$counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));

.htaccess root dir

###############################################################################
# Add custom headers and options
###############################################################################
# Notes:
#
# Examples: Adding IE compatibility / edge flags, language and encoding flags,
# php or suphp directives, configure other Apache modules such as page_speed,
# and enable or disable Apache httpd options.
#
# Do NOT configure anything directly relating to physical or virtual resources
# in this section. These should be addressed later on in this file.
###############################################################################
#Options -Indexes

###############################################################################
# Enable mod_rewrite processing using the rules in this .htaccess file
###############################################################################
# Notes:
#
# <IfModule> should be avoided at all costs. If mod_rewrite is not available
# it is almost always better to return HTTP 500 status. This way we see there
# is an issue as soon as the .htaccess file is uploaded.
#
# For mod_rewrite to work, the Apache server option to allow symbolic links to
# be followed must be enabled. Most providers supporting mod_rewrite will
# already have it enabled for you, but if your rewrite rules are not working
# you can un-comment the first directive below to manually enable the option.
#
# Don't forget, mod_rewrite directives are processed in order until a matching
# RewriteRule with the [L] flag is encountered. So the more specific a rule is
# the closer it should appear to the top of this file.
###############################################################################
#Options +FollowSymLinks
RewriteEngine on

###############################################################################
# Tell mod_rewrite where this file is relative to the server document_root
###############################################################################
# Notes:
#
# This directive should only be enabled if this .htaccess file is not placed
# in the document_root (usually public_html, www, or web) of the (sub)domain.
#
# An easy way to determine the location relative to the server document_root is
# to look at the URL used to access a file in this folder. For example if you
# access a "page" in the same folder as this file by typing in the URL
# "www.mydomain.com/myfolder/index.html" then "myfolder" will be the location
# of this file relative to the server document_root.
#
# Another quick and easy way to determine the correct setting for this is to
# look at the defined value for DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG in
# Zen Cart's configure.php files. All three values should match.
#
# Don't forget the leading and trailing /. This directive requires both!
###############################################################################
#RewriteBase /shop/


###############################################################################
# Redirect if request was for index.php (no query)
###############################################################################
# Notes:
#
# This is only required if the site generates references to index.php with no
# parameters. This rule will force a 301 redirect to the site root when a
# request is made for "/index.php" with no query terms (?key=value).
###############################################################################
#RewriteCond %{QUERY_STRING} ^$
#RewriteRule ^index\.php$ / [R=301,L]


###############################################################################
# Add any custom 301 redirects
###############################################################################
# Notes:
#
# In general these should be few and far between. If you use a RewriteRule
# be sure to add the L flag to let Apache mod_rewrite know to stop processing
# and skip any RewriteRules defined later in the .htaccess file.
###############################################################################


###############################################################################
# Redirect if request was for index.php (with or without query)
###############################################################################
# Notes:
#
# This is a performance optimization. If the request is for index.php simply
# pass the request on and do not process any other mod_rewrite directives in
# this file.
#
# Basically this avoids the overhead of checking if index.php is a real file
# or directory (used in subsequent mod_rewrite rules) before sending the
# request to index.php.
###############################################################################
RewriteRule ^index\.php$ - [L]


###############################################################################
# Start Ultimate (SEO) URLs
###############################################################################
# Notes:
#
# You should not make any changes in this section unless you really understand
# how it will impact your web site. Mistakes can break things.
###############################################################################

# Handles the new URL formats
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]

# Original (unchanged) URL formats
RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

# Rewrite all other requests (if the file / directory does not exist)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]

###############################################################################
# Add any other directives relating to the handling of physical files
###############################################################################
# Notes:
#
# If processing makes it this far, the request was for a real file or folder.
# Example: Adding further processing related to browser caching or security.
###############################################################################

please also not Ive restored these files back to there originals so these are what i started with with out adding anything

4 Mar 2016, 2:00 PM
#26
mydakota avatar

mydakota

New Zenner

Join Date:
Feb 2016
Posts:
58
Plugin Contributions:
0

Re: redirects in htacess help

induces main dir config i copied wrong contents b4 sorry couldn't edit it

<?php
/**
* @package Configuration Settings circa 1.5.4
* @copyright Copyright 2003-2014 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by zc_install on 2016-02-06 11:44:27
*/


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
 // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
 // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
 define('HTTP_SERVER', 'http://anarchyangels.net');
 define('HTTPS_SERVER', 'https://anarchyangels.net');

 // Use secure webserver for checkout procedure?
 define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
 // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
 define('DIR_WS_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');

 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 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_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

 define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
 //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
 define('DIR_FS_CATALOG', '/home/anarchy2/public_html/');

 //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
 define('DIR_FS_LOGS', '/home/anarchy2/public_html/logs');

 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
 define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
 define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
 define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
 define('DB_TYPE', 'mysql');
 define('DB_PREFIX', '');
 define('DB_CHARSET', 'utf8');
 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'anarchy2_dakota');
 define('DB_SERVER_PASSWORD', 'Justj33p');
 define('DB_DATABASE', 'anarchy2_dakota');

 // The next 2 "defines" are for SQL cache support.
 // For SQL_CACHE_METHOD, you can select from:  none, database, or file
 // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
 // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
 // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
 define('SQL_CACHE_METHOD', 'none'); 
 define('DIR_FS_SQL_CACHE', '/home/anarchy2/public_html/cache');

// EOF