There is no widget. You should add your widgets into Fixed sidebar area on Appearance => Widgets of your dashboard.


Keith Griffiths > News > General > .htaccess – improve web performance

.htaccess – improve web performance

What is a .htaccess file?

.htaccess files are great for redirecting your URLs so they are user-friendly and search engine friendly.

Below I have given an example of how to implement a basic .htaccess re-write

If you have a standard or small website you can set up a basic set of redirects that can help you to improve your website performance in the SERPs. If you have a large eCommerce website you could have lots of redirects that need to be setup in a specific way. You will also find different servers respond to.htaccess rules in slightly different ways so never presume what you have developed will work on all servers.

If you have never used a .htaccess file before you can try the following:

  • Open up notepad or notepad++ (on a Windows system) or simple text (on a MAC)
  • Copy the code below in your notepad file
  • Replace yourdomainname.co.uk with your domain name
  • Save the file with the following extension .htaccess
  • Upload to your servers root

//write this information below into your notepad file

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^yourdomainname.co.uk [nc]
rewriterule ^(.*)$ http://www.yourdomainname.co.uk$1 [r=301,nc]

What this does:  Well you have seen that Google, Yahoo and MSN will rank your site for the two variations of www and your non www. Or www. yourdomainname.co.uk – yourdomainname.co.uk.

You can implement this so you rank for one domain variation, replace the code above in a .htaccess file in your servers root, this forces a search engine to rank one variation of your domain resulting in a more focused rank for your homepage domain and inner page URLs.

Always backup your old .htaccess file before modifying a file on your server or web host.

I have made this permanent as I have no use at this stage to use the non www.

If you have a question to do with a .htaccess file use the comment form below


Leave a Comment