RewriteEngine On RewriteCond %{HTTP_HOST} yourdomain.com RewriteCond %{REQUEST_URI} ^/(.*)$ RewriteRule .* http://yourdomain.com/forum/%1 [R]