htaccess for subdomain and url rewrite
问题 I'm in trouble with this .htaccess RewriteCond %{HTTP_HOST} appname.domain.com RewriteCond %{REQUEST_URI} !appname/ RewriteRule ^(.*)$ /appname/$1 [L] In the document root (not really the root document, let's say a v-domain folder) i have this folder called 'appname'. On appname.domain.com everything shows up fine as it should. Now my problem is when I want to do something like this http://appname.domain.com/somefolder I don't want the url to be rewritten to appname.domain.com/appname