virtual directories to represent search results

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
monkeyboy
Forum Newbie
Posts: 1
Joined: Sat Nov 29, 2008 9:49 am

virtual directories to represent search results

Post 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
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: virtual directories to represent search results

Post 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
Post Reply