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.

Can someone help me with this?


Try this rule as your first rule:

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

Need Your Help

Very general question about the implementation of vectors, vertices, edges, rays, lines & line segments

vector line raytracing edges line-segment

This is just a LARGE generalized question regarding rays (and/or line segments or edges etc) and their place in a software rendered 3d engine that is/not performing raytracing operations. I'm learn...

CSS - Force overflowing elements to disappear if partially hidden


Let's say we have a box with some short paragraphs: