Hiding Script Name

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
l9pt5
Forum Newbie
Posts: 17
Joined: Wed Apr 11, 2007 10:41 am

Hiding Script Name

Post by l9pt5 »

Is there a way to hide the scripting program name, for example I have a link like

http://myserver.com/myscript.php?id=9999

and I want the user to see only

http://myserver.com/?id=9999

is there a way to do that?

Thanks...
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Easiest way is to make myscript.php => index.php,

or modify your .htaccess file with mod_rewrite,

or set your DirectoryIndex to myscript.php
Post Reply