Click to See Complete Forum and Search --> : Using a "fake" URL in PHP, how is it done?
chrys
08-10-2005, 03:36 PM
Hey all
If I wanted something to look like
http://www.site.com/This_is_the_story_name
instead of
http://www.site.com/?id=34
Does anyone know how this can be done? OR point me to some sites about it?
Much appreciated.
ShrineDesigns
08-10-2005, 04:17 PM
use apache's rewrite_mod and .htaccess file
chrys
08-10-2005, 04:47 PM
use apache's rewrite_mod and .htaccess file
Yeah t hat's the thing, I'm not sure if the company that's hosting me has the rewrite mod, I doubt it. Thanks though, I had found documentation on that. Instead I just settled for a link like this:
http://www.myplainlife.com/?Where_are_the_women?
Sheldon
08-10-2005, 05:23 PM
sorry
bokeh
08-10-2005, 08:35 PM
Actually it's mod_rewrite and most apache servers have it installed.
chrys
08-22-2005, 11:25 PM
Thanks, I got it to work.
now it shows up as:
http://www.myplainlife.com/Broken_Flowers.html for instance. Also
http://www.myplainlife.com/rants/
and
http://www.myplainlife.com/stories/
Using mod_rewrite. Thanks again for the help :)