I've recently been trying to come up with a way of masking the visible URL in the browser (so not 301 redirecting) and still show the same content as the original URL.
Here is the scenario...
Current URL's are like:-
domain.com/parent-category/sub-category/filter/brand
(parent-category
and sub-category
will always be the same word).
I wish to continue showing the content from those URL's but convert the URL's to show like:-
domain.com/brand-keyword
(keyword
will always be the same word).
I'd really appreciate it if any experts on .htaccess could advise if this is possible please. It is a Magento store by the way.
The following has previously been suggested to me:-
RewriteRule ^parent-category/([^/]+)/filter/([^/]+)/?$ /$2-$1 [L,NC]
But this didn't have the desired affect... (Didn't change the visible URL in browser yet adding R, 301
redirects it though).
Specific Example
Current URL domain.com/showering/showers/filter/alliance
Required URL domain.com/alliance-showers