Forum Moderators: coopster
This subject comes up quite often.
mod_rewrite is activated after an HTTP request is received by the server, but before any content is served. What this means is that if you want static-looking URLs to feed to search engine spiders and users, then your script has to output those static URLs -- mod_rewrite can't change them as content is being served.
However, when an HTTP request is later received for one of those static URLs, mod_rewrite *can* be used to change it back into a script call with parameters passed in the query string.
I hope that's helpful. Try doing a site search on WebmasterWorld for terms related to query string, rewriterule, etc. You'll turn up a ton of good information.
Jim
My site is set up like this:
www.domain.com/web.php?search=keyword
www.domain.com/index.php?search=keyword
and want to convert it to:
www.domain.com/websearch-keyword.php
www.domain.com/search-keyword.php
keyword is: <?=$search;?>
Anyone can help me about this?
Sorry if this is already discuss, I cannot find the same topic that I understand.