Jump to content

sub domain - .htacess


Recommended Posts

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

  • 2 years later...

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

×
×
  • Create New...