Jul
03

How to write a simple php redirect script

php, web design       Trackback

If your looking to redirect users to a different page on your site or need to put together an affiliate link then you’ll be happy to know that you can easily achieve this using php, its not complex and it works in all browsers. The code is as follows.

<?php
header( ‘Location: http://www.yourdomain.com/new_page.html’) ;
?>

Simply change the http://www.yourdomain.com/new_page.html with your url or affiliate link. The only thing to watch however is not to send any html to the browser before the script block otherwise it won’t work. So for example, if you used something like this in your page it would fail.

<html>
<head>
<?php
header( ‘Location: http://www.yoursite.com/new_page.html’ ) ;
?>
</head>
<html>

To be on the safe side I create a completely blank php page and simply add the php script block and nothing else. If you want to check that your redirect script is working then the best way is to use this headers tool from SEO Consultants. Enjoy!

Jun
27

At last an eCommerce application that does what I want!

php, web design       Trackback

This new ecommerce application from Tradingeye supports web standards (xhtml/css) and all pages are WCAG AAA / 508 valid. It’s built in Coldfusion (yuk!) or PHP (Yummy!) and even has search engine friendly urls. You can test it out with the all important online demo and after spending some time in the admin section it looks like the real deal.

It’s not the cheapest solution on the block but then again most other ecommerce applications have incredibly bad seo and web standards capabilities. Developers do get a 50% discount so its well worth checking out if your a web design company or developer.

www.tradingeye.com

Sponsors

Wordpress Themes Market
Woo Themes
Hostgator
Revolution Wordpress Theme

Categories