/ Published in: Apache
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^domain\.com$ RewriteCond %{REQUEST_URI} !subdir/ RewriteRule (.*) /subdir/$1 [L]
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)