regex - Rewrite URL on .htaccess -
i have urls www.example.com/de/something , need redirect www.example.com starts /de/.
at moment have done this
redirect 301 /de http://example.com and redirect links removing /de part , result www.example.com/something.
how fix this?
thanks
redirect directive matchs rest of uri , appends target, can use redirectmatch redirect specific uri
redirectmatch 301 ^/de/? http://example.com
Comments
Post a Comment