Page 1 of 1

virtual directories to represent search results

Posted: Sat Nov 29, 2008 9:53 am
by monkeyboy
hey,
i have a search engine, that will yield valid results only to something like 1,000 search queries.
my goal is to have 1,000 virtual (or whatever it's called) directories that each one of them is related to a different seach query,
so when the user goes, for example, to mysite.com/Elephants, it will actually go to mysite.com/search.php?SearchInput=Elephants .
got it ?

of course, i don't really want to create those 1,000 directories, and also - i don't won't it to be a redirection from mysite.com/Something to mysite.com/search.php?searchInput=something ..

is that possible to do ?
i don't even know what to search for on google in order to get additional information ..

thanks

Re: virtual directories to represent search results

Posted: Sat Nov 29, 2008 10:09 am
by omniuni
I believe what you're looking for is Apache's "mod_rewrite"

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html