hi friends i want to know how we can redirect user to other page without changing url? for example: my page url is like www.xxx.com/xyz.php now i want that this page redirect to some www.xxx.com/sss.php but in url bar it should show www.xxx.com/xyz.php. it should not get changed
Please read this FAQ about mod_rewrite: http://forums.digitalpoint.com/showthread.php?t=23044 This should be what your looking for, it should look like this; Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^xyz\.php$ sss\.php [L] Code (markup):
Another way, (although much less effective I'm sure) is to fopen the new page from inside the "old" page. $fp = fopen("sss.php", 'r'); while (!feof($fp)) { $line = fgets($fp, 1024); print($line); } fclose($fp);