Hi Guys,
I am trying to create a 301 redirect in htaccess and realised that apache doesnt allow queries in urls when doing a simple 301.
I now realise that I have to create some kind of rule but rewrites and regex and not at the top of my CV! :-)
I was wondering if anyone could help me 301 redirect this:
http://www.example.com/little-thoughts/details.php?id=117&theme_id=5
TO THIS:
http://www.example.com/an-example-product.html
I have a list of these and the id's and theme_id's are all different and each URL needs to be 301'd to another URL.
Just want to mention, that this is a Magento store, and I already have this in the htaccess file, so not sure if any additional rules would conflict with this?:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]
Any help would be massively appreciated!
Thanks
Mike