eire web design home page contact eire-web design eire web design and development site map
stepping on in business
• Welcome to Eire Web Design Ireland

Archive for December, 2007

AdSense New Feature – Dynamic Ads

Thursday, December 13th, 2007

Just noticed a new feature added to the AdSense banners.
Very nice touch from Google I have to say.
I can only see them while browsing with FireFox and it doesn’t show all the time.

Check these images below:

If you click on the arrows shown, it will automatically bring new ads into the banner without refreshing the page.

URL rewrite tips and solutions

Friday, December 7th, 2007

Due to server setup and having no access to the php.ini file to change your server settings, we will resume to the .htaccess file for rewriting the URL, removing or adding the www. and removing the PHPSESSID from the URL itself to prevent duplicated content into the Search Engines, so here are few tips to get you started:

First lets create a new file and name it .htaccess (only if you don’t already have one), and ad the following lines at the very top:

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

Now we are going to check the URL making sure the www. is always there otherwise we will redirect to the right format URL:

# redirect if not www
RewriteCond %{HTTP_HOST} !^(www)\.domain-name\.ie  

RewriteRule ^(.*)$ http://www.domain-name.ie/$1 [R=301,L]

Now lets redirect the index.php or .html to the main URL as this creates duplicated content as well:

#redirect index.php or htm to /
RewriteCond %{THE_REQUEST} ^GET\ .*/index\.(htm|html|php)\ HTTP  

RewriteRule ^(.*)index\.(htm|html|php)$ /$1 [R=301,L]

Depending on your server settings, sometimes the PHPSESSID get attached to the end of your URL, which will also created duplicated content, so there is a solution written in php that will check for the PHPSESSID query-string and if found, we will remove it and do a 301 Permanent Redirect to the same page but without it:

//remove session id from url  

if (!empty($_GET['PHPSESSID'])) {  

  $clean_uri = preg_replace('/?PHPSESSID=[^&]+/','',$_SERVER['REQUEST_URI']);  

  $clean_uri = preg_replace('/&PHPSESSID=[^&]+/','',$clean_uri );  

    header('HTTP/1.1 301 Moved Permanently');  

  header('Location: http://'.$_SERVER['HTTP_HOST'] . $clean_uri );  

    exit();  

}  

//

Please Note: The above solution is not part of the .htaccess file, but has to be added to a common include file available across the site.

Do you answer Private or Withheld numbers?

Saturday, December 1st, 2007

One thing that really bugs me is receiving phone calls from Private or Withheld numbers, especially this time of the year.

I did a test last week and out of 79 phone calls received from such numbers only 8 were actually business queries, while the rest were people trying to sell me this and that, things that I probably never need anyway.

Some are really persistent and cannot take NO for an answer which force me to just put the phone down.
Thanks, but no thanks, I am not interested in your offer.” – Is this message not clear enough?

Would you not love to be able to give them a slap through the phone? I one, do.

How many of you do answer the phone when the number is not displayed?

I for one took a decision not too any-longer. If it is that important, leave a message and we will call you back.
I do understand when you are calling another private person, but a business?
What have you got to hide?
What happens if you run out of credit or the line just drops?
Can I call you back to finish the conversation? Oh, wait – there is no number available.

Links...

Chicklets...
  • http://www.eire-webdesign.ie/blog/feed/
    http://www.eire-webdesign.ie/blog/feed/
    Google Reader or Homepage
    Add to My Yahoo!
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    add to msn
    Add to My AOL
    Add to Technorati Favorites!
    pageflakes
    windows live