$newhotel= $_GET['hotel_name']; Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.alhojozat.com/all/hotel.php?ca=sa&hotel=$newhotel" ); ?>