LinuxUK
   Home About us Design services Get in Touch Testimonails Create and account / Log in
Categories
 Premium Sites

 Security checks

 Power OSC

 Free Sites

 Support Club

 Tips and Tricks

 How to guides osC

 My Contributions

Best Buys
Power OSC
Power OSC
$70.10
LiveZilla Live Help
PHP redirects
Product stats Product Stats
Products name Product Name: PHP redirects
Products info Product description

To add a redirect with php is very simple.

Open your text editor, i recommend notepad ++ Which is free.

copy and paste this code into the blank file

<?php
header( 'Location: http://www.YOURSITE.com' ) ;
?>

Change the YOURSITE to the location you want to redirect to, save this as index.php and upload, job done :-)

Reasons why you may want to use this, your site is in the catalog folder and you have nothing in your root, so when you call www.yourstore.com you get a blank page set the redirect to www.yoursite.com/catalog and it will redirect to the catalog folder.

Please note this must be a temporary thing or your SEO ranking will suffer!

Reviews

PHP redirects - Bookmark with Delicious PHP redirects - Bookmark with Digg PHP redirects - Bookmark with Yahoo, My webb PHP redirects - Bookmark with Spurl PHP redirects - Bookmark with Furl PHP redirects - Bookmark with Ask PHP redirects - Bookmark with Sqidoo PHP redirects - Bookmark with Simply PHP redirects - Bookmark with Reddit PHP redirects - Bookmark with Magnolia PHP redirects - Bookmark with Facebook PHP redirects - Bookmark with Google