• Resolved charlietech

    (@charlietech)


    I been trying everything to speed up my website. Im using bluehost for my account, i have cloudflare, and maxcd and my site is slowing really slow.I have started over with the htaccess file and i want to know which codes i need in my speed up my site.

Viewing 15 replies - 1 through 15 (of 15 total)
  • To check your setup, and test it, please provide your URL.

    Thread Starter charlietech

    (@charlietech)

    Thread Starter charlietech

    (@charlietech)

    why did you ask me for my url if you wasnt going to help me

    I have tested your site.
    I see that CloudFlare is working well. I am not sure what maxcd is. Your site loads every link I click across the top in 1.5-2.5 seconds. I am not sure what you are wanting to speed up more. You could install a caching plugin like WP-Super-Cache if you wanted to.

    You can enable Leverage Browser caching to help with the speed of your site.

    To do this you need to add this code to your .htaccess:

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access 1 week”
    ExpiresByType image/jpeg “access 1 week”
    ExpiresByType image/gif “access 1 week”
    ExpiresByType image/png “access 1 week”
    ExpiresByType text/css “access 1 week”
    ExpiresByType application/pdf “access 1 month”
    ExpiresByType text/x-javascript “access 1 month”
    ExpiresByType application/x-shockwave-flash “access 1 month”
    ExpiresByType image/x-icon “access 1 week”
    ExpiresDefault “access 2 days”
    </IfModule>
    ## EXPIRES CACHING ##

    Please be aware this is just general Caching code. If you need something specific you will need to add it. If this causes any problems you can simply remove it.

    Thread Starter charlietech

    (@charlietech)

    Thank you,

    Ok what if Most of my images will stay the same beside my feature content which will change probably 2-4 days and a couple of side widget that will change weekly
    How should i set it?

    You can change it to access 4 days for images. Widgets shouldn’t be cached by that code.

    Thread Starter charlietech

    (@charlietech)

    Thanks so much this matter is resolve but how do you add the right expire header?
    I got this but I still have an F in add expire header in yslow

    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType text/css “access plus 60 days”
    ExpiresByType text/javascript “access plus 60 days”
    ExpiresByType image/ico “access plus 60 days”
    ExpiresByType image/jpg “access plus 60 days”
    ExpiresByType image/jpeg “access plus 60 days”
    ExpiresByType image/gif “access plus 60 days”
    ExpiresByType image/png “access plus 60 days”
    ExpiresByType text/css “access plus 60 days”
    ExpiresByType text/html “access plus 60 days”
    </IfModule>

    2 months would be my suggestion, not 60 days. So like this

    ExpiresByType text/css “access 2 months”

    Hope this helps.

    Thread Starter charlietech

    (@charlietech)

    Whats the difference from 60 days and 2months?

    It is suggested for the browsers managing it. To be honest I am not positive it makes a difference. When I learned I was always told to change it though.

    Thread Starter charlietech

    (@charlietech)

    do you know anything about set a cookieless domain? I made a cdn name and use a plugin velvet blue which rewrite old url to new ones which have all the images rewritten to the cdn but my score in pingdom is still low. what else do i have to do?

    Do you use a CDN like CloudFlare? You also may want to take a look and optimize your code/css.

    Thread Starter charlietech

    (@charlietech)

    i have maxcdn and cloudflare. i made a cdn and rewrote images to the cdn name but it still show up as a low score so Im hoping for some help. what do you mean by optimize the css code?

    Optimizing CSS has to do with removing CSS that is not used. Optimizing image size (which cloudflare can do for you). You can also try W3 Total Cache. Also I am not sure on this but I don’t believe you can use two CDN’s. I would suggest using just cloudflare.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘what codes needed to be in htacess file to speed up site’ is closed to new replies.