I'll edit this post now since now I know what it is about. I want to have a pretty URL for my website with products. In my .htaccess file i need to point to www.mydomain.com/site/#?title=orange from www.mydomain.com/site/orange
I've tried all regex possible in my .htaccess file but it just does not work. I'm starting to think it is because of the angular # (hash) sign in the URL which is required for my site to work properly.
When I click a product, then my URL changes with this code:
var url = location.href.split('#?')[0] + element;
window.location.href = url;
window.location.reload();
Then there is a reload and the link is updated to the new URL parameter showing my clicked product. I just want the www.mydomain.com/site/orange to point at www.mydomain.com/site/#?title=orange (the Hash is needed)