When redesigning a website or adding / removing pages it is important that any old URLs are forwarded on correctly so that users are not left with dead links and search engine spiders scanning your site do not penalise you for non working links.
So how do you forward on pages in a way that works correctly for search engines as well as users?
with PHP
1 2 3 4 |
<pre><?php header (“http/1.1 301 Moved Permanently”); header (“Location: http://www.domain.com”); ?></pre> |
JavaScript
1 2 3 4 5 |
<pre><script type = “text/javascript”> <!— Window.location = http://www.developerdrive.com/ //-> </script></pre> |
HTML
1 |
<meta http-equiv="Refresh" content="5”; url=http://www.developerdrive.com/"> |
With all of these redirects the important thing to remember is not to try and trick the search engines as if you get found out (and you will) they will penalise your site as a result
Source: http://www.developerdrive.com/2012/05/search-engine-friendly-page-redirects/
Blog post by Alex Wells
Working as a Website developer I love nothing more then working waist deep in code, I have specific interests in PHP and WordPress development but mostly working with local businesses to provide them with a website that meets their needs. Contact me if you have a project in mind and would like to get an input from an experienced website developer.

There are 2 versions of WordPress the first is their commercial outfit using the software to provide users with blogs at
Joomla is another vastly popular CMS that has been written in PHP and since version 1.6 it is using
Next up we have Drupal another freely avaliable open source CMS that has been built on PHP, sold as the perfect CMS for large websites it is more then capable of running websites with a single page to websites featuring a vast database of information.

