WordPress htaccess redirect top level domain to directory

I would like to redirect my Dutch website.nl to website.com/nl/

But can’t seem to find the right code to do this in htaccess.

Read More

Can someone help me with this?

Related posts

Leave a Reply

1 comment

  1. Try this rule as your first rule:

    RewriteCond %{HTTP_HOST} ^(www.)?website.nl$ [NC]
    RewriteRule ^(.*)$ http://website.com/nl/$1 [L,NC,R=301]