Forum Moderators: phranque
This doesn't work:
rewritecond %{query_STRING} &?s=([^&]+) [NC]
RewriteRule ^FR4/site/index\.php$ FR4/site/%1? [NC,L]
I have really no idea what i am doing since i first heard mod_rewrite like yesterday. Could someone help me, look att the alexa example, they have accomplished it.
Both of these functions may be useful to you, but not in the way you appear to be expecting.
In this case, the solution to your problem is to change all of the links on your site from the old query-string-based format to the new URL-path-based format, either by editing your script(s) or by changing your database as required.
You can then use mod_rewrite to deliver requests for those new-format URLs to your existing script file(s) by moving the "selection values" from the URL-path to the query string and setting the filepath to /index.php.
Having done that, you can add a second rule to redirect direct client requests for the now-obsolete query-based URLs to the new URL-path-variable URLs. However, this is not strictly necessary, and is done to speed up search engines' discovery of your new URLs, credit the pagerank/link-popularity of the obsolete URLs to the new, and recover traffic from type-ins and bookmarks of the obsolete URLs; It is not the solution to your immediate problem.
Lots more info here [webmasterworld.com].
Jim
But this old thred helped me with my question [webmasterworld.com...]
Thanks again.