George Mylonas George Mylonas - 4 months ago 44
Apache Configuration Question

Rewrite URL on .htaccess

I have urls like
and I need to redirect to
everything that starts with

At the moment I have done this

redirect 301 /de

and it redirect all links but just removing
part and result is

How to fix this?



redirect directive matchs rest of the uri and appends it to the target, you can use RedirectMatch to redirect a specific uri

redirectMatch 301 ^/de/?