Uni!

Hello, long time - no write.

Well as you can probably guess I am at University now, enjoying it so far. Starting all the hard work and lectures next monday!

Write again soon!

       Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon

Well after a very long weekend working long shifts I can finally relax this weekend, and I’ve got Wednesday off so its all good :)

       Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon

Finally… after ages of looking around I found the fix for something we were trying to do for our business facebook adverts. We basically wanted to refer all vistors who come from our facebook adverts to a specific special offers page (facebook.php) Find a quote below of how to do it

Here is the code to check your web server referer and then redirect the visitor to your custom sales page. Simply take the two lines of code and put them in your .htaccess file and you’re done.

RewriteCond %{http_referer} ^http://([^.]+\.)*(facebook)\.com
RewriteRule ^$ facebook.php [R=302,L]

In this example, we look for referer’s from facebook.com and we direct them to a page on our site called facebook.php

You should change the domain and the page to anything you like.NOTE: You need to have the apache module mod_rewrite installed on your web server.

       Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon

More to come soon….

       Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon