freaka Posted March 8, 2007 Share Posted March 8, 2007 I would like to write a script in PHP that would allow me to link things like this: index.php?p=news < and have this goto the news page and index.php?download=moo.mp3 < and have this download the file but what i would really like is if i could not even have to write the index.php part. for example: http://DJFreaka.com/?p=news and http://DJFreaka.com/?download=moo.mp3 I had written a script similar to this once before, but i dont remember how. also i want to figure out how to make it so when i link to files like this, the real location isnt revealed. the script i wrote redirected to the file, but then the address bar read "http://djfreaka.com/example.html" when i did something like ?p=example. so if anyone can help me out, i would be deeply appreciative. thanks a lot for your help. Link to comment https://forums.phpfreaks.com/topic/41749-simple-help-needed-for-simple-man/ Share on other sites More sharing options...
DanDaBeginner Posted March 8, 2007 Share Posted March 8, 2007 try the mod_rewrite.... Link to comment https://forums.phpfreaks.com/topic/41749-simple-help-needed-for-simple-man/#findComment-202425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.