dpacmittal Posted August 5, 2010 Share Posted August 5, 2010 I made a CNAME static.mysite.com and pointed it to www.mysite.com. This is basically to create a cookieless domain. Now I don't want anything other than javascript, css and pictures to be served from static.mysite.com. I almost wasted one hour figuring out what htaccess would suffice this. I've got the logic but I am not able to implement it. Basically, if the HOST header has static in it, then allow only above-specified filetypes and give a 403 on the other pages. If the HOST header doesn't contain 'static' in it, then its normal domain and should allow access to everything. I hope I am clear. Can you guys help me with this? Quote Link to comment https://forums.phpfreaks.com/topic/209875-htaccess-for-cookieless-domain/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.