Is it possible to show only http host in URI

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
devendra-m
Forum Contributor
Posts: 111
Joined: Wed Sep 12, 2007 3:16 am

Is it possible to show only http host in URI

Post by devendra-m »

Is it possible to show only http host in URI by using RewriteRule and without using frameset.

for example,

i have http://www.example.com/folder/page.php? ... rameter2=2

and i want to show only http://www.example.com
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Re: Is it possible to show only http host in URI

Post by Ambush Commander »

No, because what's shown in the URL is what the browser is requesting from the server, and RewriteRule will get only that. I'd recommend just biting the bullet and keeping the long URLs; framesets suck!
Post Reply