Page 1 of 1
Redirect to search page
Posted: Sun Sep 20, 2009 10:42 am
by badihi
Hello there.
How can I do this:
If user typed this address:
http://mysite.com/word
He/She redirect to this address:
http://mysite.com/search.php?keyword=word

Re: Redirect to search page
Posted: Sun Sep 20, 2009 1:59 pm
by ricehigh
There's a wonderfull guide here:
http://corz.org/serv/tricks/htaccess2.php
Be aware though, that your folders could have the same url as the search. I think it would be better if you constructed it like
http://mysite.com/search/word, but that is, of course, up to you

Re: Redirect to search page
Posted: Mon Sep 21, 2009 6:59 am
by badihi
Sorry! But I can't access that page.
Please put another one.
Re: Redirect to search page
Posted: Mon Sep 21, 2009 7:21 am
by papa
Re: Redirect to search page
Posted: Mon Sep 21, 2009 7:25 am
by jackpf
Just google mod rewrite.