1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Website optimization tutorial by notyourmatey

Discussion in 'White Hat SEO' started by notyourmatey, Feb 14, 2013.

  1. notyourmatey

    notyourmatey Power Member

    Joined:
    Jul 7, 2011
    Messages:
    573
    Likes Received:
    324
    Location:
    TOP3
    There is a lot of website optimization tutorials, but i would like to share my, with a bit diffrent info.

    Most important for me is to have a fast loading website. To check how your website performs in terms of its speed
    go to :
    Code:
    https://developers.google.com/speed/pagespeed/insights. 
    
    To say that your website is properly optimized
    for G you need to have score of more than 90. What G likes is a website that loads fast so users ( customers) don't
    need to wait to long for a load and i believe big B ranks higher such websites. ( doesn't apply to huge, authority websites- they cna be slow cows)

    So lets focus on speed first:
    most common issues i see with this tool are:

    - gzip compression (mod deflate)
    what is it all about you can read here :
    Code:
    https://developers.google.com/speed/docs/best-practices/payload#GzipCompression
    to fix this and speed up our website add this piece of code at the bottom of your .htaccess file:

    Code:
    AddOutputFilterByType DEFLATE text/html text/plain application/javascript text/css text/xml
    this one is quite common mistake but now- bam, 1:nil for us.

    Next common mistake is not using cache for static resources such as css, and images. here is g tutorial:
    Code:
    https://developers.google.com/speed/docs/best-practices/caching#LeverageBrowserCaching
    if we fix this we will score higher in speed tool and here is a solution for this:

    Code:
    ExpiresActive On
    ExpiresByType image/gif A604800
    ExpiresByType image/png A604800
    ExpiresByType image/jpg A604800
    ExpiresByType image/jpeg A604800
    ExpiresByType image/x-icon A604800
    ExpiresByType text/css A604800
    this code needs to be added in .htaccess file ( i've got it above the previous one) this will set expiration date for resources such as icons, images and css for a week (A604800- this is how many seconds you have in a week- wow, what a knowledge!). basically if someone return to your website all this stuff (gif,png,jpg,css) will be served from his hard-drive and not taken from your site and using your bandwith. 2:nil for us

    another thing are images that are often too heavy. try to upload only light pictures so your website will load fast. before you upload pictures to your website use this little tool from yahoo which will do some savings for you:
    Code:
    http://www.smushit.com/ysmush.it/
    with so light pictures your website will perform very fast. 3:nil for us.

    Those are common issues that are always high priority for pagespeed tool. We fixed them, lower priorities you can check on your own
    but if you are above 90 you are good to go. I should also mention that our website should be on fast and reliable server, causing problems for gbot because our website is down or server is slwo and shit won't help us.

    Internal linking:

    this is also important topic, because we can rank for some kws just thanks to this ( do not expect to rank for viagra or casino online thanks to only this:p)
    i will not cover here how to do it for big site- just remember to link to other parts of your website with anchor text which should be relevant and not spammy
    what i also usually do i add rel=nofollow to pages like login, register, contact, site TOS if i have links from home page-
    there is no need to lose pr juice to unimportant pages of your website. If you have external links make sure you
    do not have too many ********s because you loosing pr.

    Basics:

    Title- put here most important keyword- if you spam it with a lot of kws and have a nasty competitor who will send spam report you will be penalised.
    H1- header tag. important for g, good to put a kw there. its good to do it right- instead of NYC SEO write SEO services in NYC- gbot will understand what you really want.
    Meta description- everyone is saying it doesnt have impact on seo but it surely impacts your ctr. use keywords and call to actio or interesting description (shouldnt be longer than 160 chars sa far as i remember)
    Meta keywords- same as above but can't see any reason not to add 3 or 5 in this tag

    You want to have all of them on every page of your website (meta keywords you can only do once in index). You should have all of them unique for every page of your website. you do it one time and you can forget it but you should do it to call your website optimized.

    Extra tips:

    - if you run blogs it is good to add noindex tag for categories and tags to avoid duplicate content
    - if you are on wordpress try to not use admin as a login and have secure password. there are many bored twats
    who like to hack people's website and by using your name or your something instead of admin it will make it harder for them to hack your site.
    if you are skilled enough change your login url
    - always keep your plugins and cms version up to date

    Last trick:

    very often ranking for keywords around a city i.e. plumber nashville or something can be easier with..........
    schema.org what is schema you can check by yourself. below is my trick that helps me rank local kws:

    Code:
    <div itemtype="http://schema.org/LocalBusiness" itemscope="">
    <h6>
    <span itemprop="name">your company</span>
    </h6>
    <p>
    <span itemprop="description">put kw here that you want to rank locally</span>
    </p>
    <div itemtype="http://schema.org/PostalAddress" itemscope="" itemprop="address">
    <p>
    <span itemprop="streetAddress">street Address</span>
    </p>
    <p>
    <span itemprop="addressLocality">your town</span>
    </p>
    <p>
    <span itemprop="addressRegion">your region </span>
    </p>
    <p>
    Tel.
    <span itemprop="telephone">surprise- phone number </span>
    Paste this html in your source. things like this:
    Code:
    <p>
    <span itemprop="addressLocality">
    won't be visible so don't worry. Very often for local keywords you dont need a lot of links and with this markup it is easier to rank.
    Important: this markup must appear on every single page of your website, to work good for you- i usually keep it in a footer as a fast contact.

    Hope I help one or two folks. BHW is great community, I learnt here a lot so this is my small contribution.
    Thanks to inspirational guys such as : cash202, scritty, extrawinner, candybar and others from whom I learnt.
     
    • Thanks Thanks x 9
  2. demanz

    demanz Newbie

    Joined:
    Jan 20, 2013
    Messages:
    38
    Likes Received:
    16
    Occupation:
    Procrastinator
    Location:
    England
    You can also use a CDN to dramatically help with your pagespeed score (free account at cloudflare can suffice for a lot of people), this also helps big time if your hosting offshore (for whatever reason).
    ;)

    Cheers
     
    • Thanks Thanks x 1
  3. notyourmatey

    notyourmatey Power Member

    Joined:
    Jul 7, 2011
    Messages:
    573
    Likes Received:
    324
    Location:
    TOP3
    yep. heard only good things about cloudflare but its bit pricey for me:)
     
  4. googlelovedr

    googlelovedr Registered Member

    Joined:
    May 8, 2013
    Messages:
    62
    Likes Received:
    11
    You learn something new everyday was not aware of these scheming schema thingy great read up notyourmatey
     
  5. The SEO

    The SEO Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 14, 2011
    Messages:
    3,973
    Likes Received:
    3,114
    Occupation:
    SEO/SMM
    Location:
    BHW
    Superb guide OP, thanks a lot to share with us...

    Highly appreciated.
     
    • Thanks Thanks x 1
  6. michela

    michela Regular Member

    Joined:
    Nov 23, 2013
    Messages:
    232
    Likes Received:
    15
    Occupation:
    Freelance
    Location:
    Italy
    Very good thread thanks to share it with us

    Good luck ;)
     
  7. abhi007

    abhi007 Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2010
    Messages:
    5,297
    Likes Received:
    3,740
    Location:
    snip.li/TubH
    very good share but less seen by BHW members :(
     
  8. derockz

    derockz Newbie

    Joined:
    Oct 9, 2013
    Messages:
    14
    Likes Received:
    3
    wow, nice tutorial, thanks...
    I've practiced some of them, for using schema org, I never use it.. still dont understand.. will learn for it.. nice tricks bro..
     
  9. Thebreaker

    Thebreaker Newbie

    Joined:
    Apr 5, 2014
    Messages:
    16
    Likes Received:
    1
    This tut could be handy for my website, thanks bro
     
  10. Vantage9

    Vantage9 Newbie

    Joined:
    Jul 11, 2012
    Messages:
    19
    Likes Received:
    3
    CDN is the way to go, both speed and security all in one. CloudFlare is my recommendation