Closed Thread Icon

Preserved Topic: Any suggestions? Pages that link to <a href="https://ozoneasylum.com/backlink?for=18146" title="Pages that link to Preserved Topic: Any suggestions?" rel="nofollow" >Preserved Topic: Any suggestions?\

 
Author Thread
Sash
Paranoid (IV) Inmate

From: Canada, Toronto
Insane since: May 2000

posted posted 04-24-2001 19:21

We have an oracle database. The url-s are very very long. To output one record about one customer in database is almost 200 characters long URL. It would be neat if I could get this with www.blabla.com/customername instead of calling the long url. I can create one folder in my root that is called 'customername' and have in there one index file that redirects to the long url. But it would involve creating thousends of folders. It is not efficient solution I guess :-)

Thanks for any suggestion.
Sash



sashaDesign

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 04-24-2001 21:40

Why not create a scrpt called customername.cgi and pass the customers name as an option to the script?

For example www.blabla.com/customername,cgi?&name="customer name".

Or you could tell the web server that customername.cgi is one of the default names to use when a file name is not specified. Then when you enter [i]www.blabla.com/?customername[/], the server woul invoke the script and pass it the parameter.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-24-2001 22:20

Sash, I would suggest you to use sessions to store values instead of passing them through URL. Anyway, if you're stuck with that and your web server is Apache, you can try to use mod_rewrite to implement something similar to your idea with folders...



[This message has been edited by mr.maX (edited 04-24-2001).]

« BackwardsOnwards »

Show Forum Drop Down Menu