htaccess rewrite add extension and preseve query string

Discussion in 'Apache' started by cracking confidence coach, Jun 15, 2011.

  1. #1
    Hi, I have a htaccess rewrite issue... I'm trying to redirect incoming links for a page that will always have a query string.

    Basically, from crackingconfidence.co.uk/wishlist-member?reg=xxxxxxxxxx to crackingconfidence.co.uk/wishlist-member.html?reg=xxxxxxxxxx

    I've tried a simple 301 redirect but it throws up a too many redirects error... and I've also tried an array of rewriterule and rewritecond, but for some reason it's not keeping the query string. Is there a way of doing this?

    Many thanks,

    Dan