Forums / Installing on a Linux/Unix Server / zenid on every link - how to remove it?

zenid on every link - how to remove it?

Locked

Views: 6,980

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
15 Jul 2010, 3:45 PM
#1
tesefoti avatar

tesefoti

New Zenner

Join Date:
Jul 2010
Location:
Italy
Posts:
66
Plugin Contributions:
0

zenid on every link - how to remove it?

Hi.

I hosted a zencart on bluehost.com. It was my main domain so I had to create a .htaccess file to use https://www.mydomain.com instead of a folder.
Since I changed that every link on my page has a &zenid=string-of-letters-and-numbers and I would like to remove this because it will be confusing for my clients to share links, and raises other issues.
I've tried the solutions I found on this board and on the FAQ and wiki and I still can't remove that zenid (and zenAdminID on the admin page) from the links.

on my admin > config > sessions i have:

Session Directory /home2/myuser/public_html/mydomainname/cache
Cookie Domain True
Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session True
IP to Host Conversion Status true

on my configure.php i have:

define('ENABLE_SSL', 'true');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/mydomainname/');

define('DIR_FS_CATALOG', '/home2/myuser/public_html/mydomainname/');

define('DIR_FS_SQL_CACHE', '/home2/myuser/public_html/mydomainname/cache');

my .htaccess is:

RewriteCond %{HTTP_HOST} ^(www.)?mydomainname.com$
RewriteCond %{REQUEST_URI} !^/mydomainname/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /mydomainname/$1

RewriteCond %{HTTP_HOST} ^(www.)?mydomainname.com$
RewriteRule ^(/)?$ mydomainname/index.php [L]

and my public_html/domainname/cache is set to 777.

I've tried all the solutions I found on the internet and still can't remove the zenID from the links. any idea of what i may be doing wrong?

thank you.

16 Jul 2010, 3:18 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: zenid on every link - how to remove it?

These should match:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/mydomainname/');

If that does not fix it, turn off any SEO/re-writes while you work to resolve this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Jul 2010, 7:32 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: zenid on every link - how to remove it?

...or install a Full SSL Certificate, reconfigure your site to use it, and then turn on "Force Cookie Use". This will remove the session id from all pages and wrap them in a cookie placed on the visitors PC.

It has the added benefit of stopping all search engine spiders from creating session ids which they then display in search engine results (this can cause havoc).

Vger

17 Jul 2010, 3:50 PM
#4
tesefoti avatar

tesefoti

New Zenner

Join Date:
Jul 2010
Location:
Italy
Posts:
66
Plugin Contributions:
0

Re: zenid on every link - how to remove it?

I've tried to match the configure.php removing the mydomain/ but then it would give me a 404 error.
When I forced using cookies first it would work, but then if the client doesn't have cookies enabled they just can't add to cart.

I've reverted to the original stage and matched to

define('DIR_WS_CATALOG', '/mydomainname/');
define('DIR_WS_HTTPS_CATALOG', '/mydomainname/');

Now it's working, like before, but every link goes to a folder, like https://www.mydomainname.com/mydomainname/index.. instead of just https://www.mydomainname.com/index...
It is better to show the folder than to have zenid all over I guess but if you have more suggestions I will be thankful to try them.

Thanks!

17 Jul 2010, 3:58 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: zenid on every link - how to remove it?

Are your files in a subdirectory off your root of your domain or are they in the root of your domain?

This means, do you see:
/public_html/somedirectoryname/includes

or do you see:
/public_html/includes

Could you post, from the server, without your username and password, the file:
/includes/configure.php

so that we can perhaps fix this problem? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Jul 2010, 4:10 PM
#6
tesefoti avatar

tesefoti

New Zenner

Join Date:
Jul 2010
Location:
Italy
Posts:
66
Plugin Contributions:
0

Re: zenid on every link - how to remove it?

They are in a subdirectory of the root so I see /public_html/somedirectoryname/includes. The host is bluehost and it gets more tricky since it's the main domain, so I had to create a .htaccess to link directly the https://www.mydomain.com to somedirectoryname

The configure.php code is:

define('HTTP_SERVER', 'http://www.thenewproject.com');
define('HTTPS_SERVER', 'https://secure.bluehost.com/~thenewproject/');

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

// 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', '/thenewproject/');
define('DIR_WS_HTTPS_CATALOG', '/thenewproject/');

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', '/home2/thenewproject/public_html/thenewproject/');

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_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '---');
define('DB_SERVER_PASSWORD', '---');
define('DB_DATABASE', '---');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// 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', '/home2/thenewproject/public_html/thenewproject/cache');

I changed the domain because it's not public yet but I will surely let you know later and hopefuly get accepted in the zencart shop catalog :)
if there's anything else I can do please let me know. thanks

17 Jul 2010, 4:31 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: zenid on every link - how to remove it?

Change this line:

define('HTTPS_SERVER', 'https://secure.bluehost.com/~thenewproject[B]/[/B]');

To read:

define('HTTPS_SERVER', 'https://secure.bluehost.com/~thenewproject');

What is in the .htaccess file?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Jul 2010, 4:42 PM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: zenid on every link - how to remove it?

When I forced using cookies first it would work, but then if the client doesn't have cookies enabled they just can't add to cart.

By default most people's browsers only refuse "3rd Party" cookies (from sites not related to the site they are visiting). Very few people block all cookies, because if they did it would render them unable to buy from a majority of sites on the internet.

You cannot use force cookie use if you use shared ssl. You do need full ssl or no ssl for it to work, and full ssl carries a wealth of other benefits.

Vger