Recently I realized my site (www.abcd.com) needs a cookieless domain to serve the static contents. I'm not so expert in these things, so I just searched over the forums & google. Found couple of articles regarding this.
I need a clear instruction to do so in OpenCart.
Here's a problem, everyone is talking about setting up a cookieless subdomain like static.mydomain.com which is perfectly understood. But I don't want to do it with subdomains. I want my cookieless domain like static.efgh.net So I already bought another domain (efgh.net) to configure my cookieless domain.
Please give me some instruction to configure my cookieless domain (root domain not a subdomain)
Thanks in advance.
Regards,
duranto2009
http://www.marketplacebd.com
Shows each steps on how to set-up a cookieless domain, including .htaccess. However, since this topic has nothing to do with Opencart itself, I would suggest to either contact your host if you're still not sure on how to initiate a cookieless domain after reading these instructions.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Hey straightlight!straightlight wrote:Googled it, took a few minutes: http://www.wesleysmits.com/how-to-set-u ... ss-domain/
Shows each steps on how to set-up a cookieless domain, including .htaccess. However, since this topic has nothing to do with Opencart itself, I would suggest to either contact your host if you're still not sure on how to initiate a cookieless domain after reading these instructions.
Thanks for the heads up, man!

I already read that article more than 20 times. Everything is good. Now I know the basic of a cookie-less domain. But how to link the cookie-less domain to my opencart 1.5.6.4 shop. I tried to modify the config.php and admin/config.php files to replace the IMAGE_DIRECTORY. But no luck, after replacing the image directory my admin dashboard shows a warning.
Code: Select all
Warning: Image directory /public_html/image/ not writeable!
Warning: Image cache directory /public_html/image/cache/ not writeable!
My config.php is:
Code: Select all
<?php
error_reporting(0);
ini_set("display_errors", 0);
// HTTP
define('HTTP_SERVER', 'http://beta.marketplacebd.com/');
define('HTTP_IMAGE', 'http://static.mplcbd.net/image/');
// HTTPS
define('HTTPS_SERVER', 'https://beta.marketplacebd.com/');
define('HTTPS_IMAGE', 'https://static.mplcbd.net/image/');
// DIR
define('DIR_APPLICATION', '/home/---------/public_html/beta/catalog/');
define('DIR_SYSTEM', '/home/------/public_html/beta/system/');
define('DIR_DATABASE', '/home/-------/public_html/beta/system/database/');
define('DIR_LANGUAGE', '/home/-------/public_html/beta/catalog/language/');
define('DIR_TEMPLATE', '/home/------/public_html/beta/catalog/view/theme/');
define('DIR_CONFIG', '/home/------/public_html/beta/system/config/');
define('DIR_IMAGE', '/home/######/public_html/image/');
define('DIR_CACHE', '/home/------/public_html/beta/system/cache/');
define('DIR_DOWNLOAD', '/home/--------/public_html/beta/download/');
define('DIR_LOGS', '/home/--------/public_html/beta/system/logs/');
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://beta.marketplacebd.com/admin/');
define('HTTP_CATALOG', 'http://beta.marketplacebd.com/');
define('HTTP_IMAGE', 'http://static.mplcbd.net/');
// HTTPS
define('HTTPS_SERVER', 'http://beta.marketplacebd.com/beta/admin/');
define('HTTPS_CATALOG', 'http://beta.marketplacebd.com/');
define('HTTPS_IMAGE', 'http://static.mplcbd.net/');
// DIR
define('DIR_APPLICATION', '/home/--------/public_html/beta/admin/');
define('DIR_SYSTEM', '/home/--------/public_html/beta/system/');
define('DIR_DATABASE', '/home/--------/public_html/beta/system/database/');
define('DIR_LANGUAGE', '/home/--------/public_html/beta/admin/language/');
define('DIR_TEMPLATE', '/home/--------/public_html/beta/admin/view/template/');
define('DIR_CONFIG', '/home/--------/public_html/beta/system/config/');
define('DIR_IMAGE', '/home/######/public_html/image/');
define('DIR_CACHE', '/home/--------/public_html/beta/system/cache/');
define('DIR_DOWNLOAD', '/home/--------/public_html/beta/download/');
define('DIR_LOGS', '/home/--------/public_html/beta/system/logs/');
define('DIR_CATALOG', '/home/--------/public_html/beta/catalog/');
I don't get it, everything looks just perfect!



Regards,
duranto2009
http://www.marketplacebd.com
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
http://www.opencart.com/index.php?route ... n_id=23506
Good Luck
Ernie
hitline.info/shop/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Hosting for Oc 2.x: Well tested on 2.03.1 including emails work correctly, cPanel Shared or WHM VPS, managed security, fast & reliable SSD drives, Raid 10 /4 disk redundancy, server locale - Texas, contact me to discuss further.
You're serving from http://duranto2009 wrote: I don't get it, everything looks just perfect!where is the problem
what am I missing??
Hosting for Oc 2.x: Well tested on 2.03.1 including emails work correctly, cPanel Shared or WHM VPS, managed security, fast & reliable SSD drives, Raid 10 /4 disk redundancy, server locale - Texas, contact me to discuss further.
ANY SITE, containing SOMETHING, related with setting Browser- COOKIES, is called: NO COOKIE LESS DOMAIN.bibiloute wrote:i try many time but when i make performance test it say no cookie less domain...
all my image are not served from subdomain this is work
but why it's not cookie less i don't know how to do
i have access to my Htaccess etc..
By example, OC Images may be called from:
http://www.othershop.whatever....
instead of, calling them from:
http://www.myshop.whatever.....
or, like by default, linked 'internally', directly calling them from:
image/data/whatever...
or:
catalog/view/theme/default/image/whatever...
is, strictly Cookie-technically, all the same.
Therefore, IF my shop is configured to work under:
http://www.myshop.whatever......
and the other Shop, where my images are placed, is called under:
http://www.othershop.whatever....
THEN, despite of, this beeing a Remote Image Subdomain Routine, it's still NOT A COOKIE FREE SUBDOMAIN CALL.
...
A simple way of Cookie FREE Image (sub) Domain would/could therefore be:
http://myshop.whatever.....
or:
http://othershop.whatever....
if, under THIS Link-Call, nothing ELSE on the Site, in the Server ROOT Section, creates some Cookies, when such an URL is called, without the USE of the WWW
Ernie
openshop.li/shop/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I do not use anymore v-2's, to make tests.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
It opens the correct image location, I'm able to upload images, create folders. But when I insert image into post or option the url is from non static domain which causes break of image (404). Does anybody with Journal theme solved that problem. I think it's related to some modification of theme to file manager but still have no success to find out what is it.
https://drive.google.com/file/d/0BzPa5u ... sp=sharing
OpenCart SEO Services
http://tomeda.bg
Users browsing this forum: No registered users and 2 guests