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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -