> 02/01/2012 - 03/01/2012

Feb 16, 2012

301 Redirects using htaccess, 301 Redirects Tips, 301 Redirects SEO

301 Redirects Tips
Now I want to share how to redirect the page via 301 redirects using Apache's htaccess. As we know 301 redirect is Search Engine Friendly method for web page redirection. And this is not much difficult to implement and will conserve your search engine rankings as well.If anyone want to re-direct the old page to new page or website You should have a redirect in place if your old link structure varies from the new one. This will help you maintain you search engine rankings and decrease the possibility if someone reaching a 404 page.

For example:

When someone tries to access your website without the (www); It will redirect the URL to your website with the www. So, we should stick with one pattern because accessing your website both ways is not good in SEO (Search Engine Optimization) of view. Google will treat as duplication. To avoid the errors and make the process SEO friendly, we have to implement 301 redirect for your website,

Follow these instructions:

1. Open up notepad or any other text editor and copy and paste the commands below.
2. Change (yourdomain) to your domain name.
3. Save the file with this name: (.htaccess).
4. Upload it to the root directory of your website.

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]


Read More...

Feb 15, 2012

Google Analytics - How to manually Track Clicks on Outbound Links

Google Analytics Event Tracking Tips
you want to use the tracking feature of Google Analytics to track all clicks on outbound links from your site, however, you also want those outbound links to open a new window...
If you simply follow the instructions to track outbound links you will discover that your links will no longer open in a new window (regardless of whether you are using Javascript or target="_BLANK" to open the window.

And here's the solution:


Apply the javascript to you hyperlink as usual...
your link text
...but modify the tracking code as follows...
function recordOutboundLink(link, category, action) {
try {
var pageTracker=_gat._getTracker("XX-XXXXXXX-XX");
pageTracker._trackEvent(category, action);
setTimeout('document.location = "' + link.href + '"', 100;window.open(this.href))
}catch(err){}
}
(Don't forget to replace XX-XXXXXXX-XX with your tracking code)
...and that's all — Outbound links with Google Analytics tracking and opening in a new window


Read More...

Free SEO Related Top Articles, Articles on SEO & SEM, Latest Articles on SEO Tips

 
Latest Topics on SEO, SEM Updates Free SEO Directory List Free SEO | SEM | Google Top Videos