i am trying to rewrite a URL for SEO purpose.
The old URL is:
http://www.domain.net/index.php?p=beer
The new URL should be:
<
If you want to capture part of the query string, you must use a RewriteCond with QUERY_STRING
QUERY_STRING
RewriteEngine On RewriteCond %{QUERY_STRING} p=(.+) RewriteRule ^/?index.php$ /%1? [R,L]
This redirects the client to the new URL http://www.domain.net/beer.
http://www.domain.net/beer