Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide redirected domain

Status
Not open for further replies.

MOP

IS-IT--Management
May 30, 2000
18
0
0
AU
I am using this code to redirect to different pages in my domain.
<a href=&quot;
redirect.php looks like this:
<?
switch($url){
case '1': $links = &quot;case '2': $links = &quot;}
header (&quot;Location: $links&quot;);
exit;
?>
My query is, can I have the address bar after redirection show only &quot; instead of &quot;
I wish to avoid the use of frames.
Thanks in advance.

Mop







********Byte me ********
 
As far as I now is that impossible without frames. Only a real re-direct (suplied by your host) can arrange that.

Don't eat yellow snow!
 
It depends on your webhost.

1. Is it an Apache server?
2. if so: Is mode_rewrite installed?
3. If yes you can use a .htaccess file to rewrite the URL.

 
Yes to 1 and 2.
Got any tips on the syntax for .htaccess file?







********Byte me ********
 
Thanks, I'll give it a go.







********Byte me ********
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top