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

 Security checks

 Support Club

 Tips and Tricks

 How to guides osC

 My Contributions

 osCommerce versions

 Base64 Decoder

 Link to us!

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 - TITLE_DEL_ICIO_US PHP redirects - TITLE_DIGG PHP redirects - TITLE_YAHOO_MYWEB PHP redirects - TITLE_SPURL PHP redirects - TITLE_FURL PHP redirects - TITLE_ASK PHP redirects - TITLE_SQIDOO PHP redirects - TITLE_SIMPY PHP redirects - TITLE_REDDIT PHP redirects - TITLE_MA_GNOLIA PHP redirects - TITLE_FACEBOOK_BOOKMARK PHP redirects - TITLE_GOOGLE_BOOKMARK