If I have URL's like:-
And it is pretty difficult to reconstruct them to something like:-
Is there any way at all that I can use URL rewrites or anything else with .htaccess or on the server to display the URL's as the
domain.com/category/blue-widgets on the
I've looked into masking URL's but got nowhere and this has been something bugging me for almost 6 months now. Is there any way to achieve what I want to do?
FYI: This is a Magento website and the above process, I am wanting to implement for potentially hundreds of URL's.
To respond to @kkugelmann's answer:-
I couldn't get your proposed
RewriteRule to make a difference at all in the
.htaccess file so I started testing a few things in this .htaccess tester:-
RewriteRule didn't work in this tester:-
However, the following did:-
But adding any of these
RewriteRule's into the website's
.htaccess file did not rewrite the URL at all...
By the way, if I add
[R=301,L] to the end of the URL rewrite rule, it does actually then rewrite the rule, but of course 301 redirects it as well which is unwanted behaviour.
I found another question with the same issue... And an accepted answer that solved the problem which seemed to be something to do with using
mod_proxy and the
[P] tag on the rule (if I try this, the page 404's).