Forum Moderators: phranque
example.com/index.php?p=cart or example.com/?p=cart has been requested by an external client, and if it has, to redirect to example.com/cart.html. This rule will have the [R=301,L] flags and the redirect target will contain the protocol and domain name, as well as the path the user is being redirected to. example.com/cart.html is requested, the file at /index.php?p=cart is used to serve the content. This rule needs only the [L] flag, as it is for an internal rewrite. .html extension from your rewritten URLs. This makes the pattern matching much easier. You can then rewrite all "extensionless" URL requests to your script in one rule, without having to have multiple rules, one for each URL.