MathiasReker Posted June 18, 2013 Share Posted June 18, 2013 Hi, I have just read this article: http://leethemes.com/blog/how-to-speed-up-a-prestashop-site and point 5 looks very interesting. I think, I know how to fix it, but I just want to be sure before edit the code. I make 4 subdomins: js1.shinetech.dk js2.shinetech.dk css1.shinetech.dk css2.shinetech.dk Then I make a .htaccess file and place it in every subdomin. (correct me if im wrong, because I am not sure where to place this file): RewriteEngine On RewriteCond %{HTTP_HOST} ^js1.shinetech.dk$ [OR] RewriteCond %{HTTP_HOST} ^www.js1.shinetech.dk$ RewriteRule (.*)$ [R=301,L] I move the files from /js/ to the new subdomain. (Do I delete the /js/ folder after moving the files?) I do this for all the patches and subdomains and make a unic .htaccess file for each one: /js/ /theme/mytheme/js/ /css/ /theme/mytheme/css/ Thank you alot! Best regards Mathias Reker Link to comment Share on other sites More sharing options...
Tanatus Posted November 9, 2015 Share Posted November 9, 2015 Hi, I have just read this article: http://leethemes.com/blog/how-to-speed-up-a-prestashop-site and point 5 looks very interesting. I think, I know how to fix it, but I just want to be sure before edit the code. I make 4 subdomins: js1.shinetech.dk js2.shinetech.dk css1.shinetech.dk css2.shinetech.dk Then I make a .htaccess file and place it in every subdomin. (correct me if im wrong, because I am not sure where to place this file): RewriteEngine On RewriteCond %{HTTP_HOST} ^js1.shinetech.dk$ [OR] RewriteCond %{HTTP_HOST} ^www.js1.shinetech.dk$ RewriteRule (.*)$ [url=http://www.shinetech.dk/js/$1] [R=301,L] I move the files from /js/ to the new subdomain. (Do I delete the /js/ folder after moving the files?) I do this for all the patches and subdomains and make a unic .htaccess file for each one: /js/ /theme/mytheme/js/ /css/ /theme/mytheme/css/ Thank you alot! Best regards Mathias Reker Hi, have you been able to find any solution / answer ? Link to comment Share on other sites More sharing options...
bellini13 Posted November 9, 2015 Share Posted November 9, 2015 why not create 3 subdomains and then place the URLs in the media server fields in the back office performance page? Link to comment Share on other sites More sharing options...
Tanatus Posted November 9, 2015 Share Posted November 9, 2015 why not create 3 subdomains and then place the URLs in the media server fields in the back office performance page? But media servers are for images, correct? What about JS and CSS. Link to comment Share on other sites More sharing options...
bellini13 Posted November 9, 2015 Share Posted November 9, 2015 media server covers static resources (images, js and css) Documentation is your friend http://doc.prestashop.com/display/PS16/Performance+Parameters Link to comment Share on other sites More sharing options...
Recommended Posts