it IS possible, as long as your first URL remains constant.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ search.php?terms=$1 [L]
This rule set internally rewrites all requests that do not exist on the server as a file or directory to a search script that has access to the non-existen request via the query string by testing each request against the request's system filename. %{REQUEST_FILENAME} is a server variable containing "the full local filesystem path to the file or script matching the request" (eg, /home/foo/public_html/find in the first example). -f tests the %{REQUEST_FILENAME} to see if it's an existing file; -d tests to see if it's a directory. The exclamation point negates the tests.
This is commonly requested as a way to catch all non-existent requests instead of sending the normal 404 Not Found server error.
http://forums.devshed.com/showthread...61#post1165161
- wonderful link if you want to know more about mod rewrite
Edit:
Sorry tripy, looks like we posted at the same time 
__________________
█ No Overselling Guarantee | Now Includes a Free Domain
█ Web Hosting | Web Hosting Blog
█ FREE month of Hosting for all Members! Coupon: webmaster-talk2009
Last edited by andrei155 : 04-18-2008 at 08:16 AM.
|