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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -