Using .htaccess to set a sub directory as root directory
Is there a way to use htaccess to tell a subdirectory to act as the root for the entire site?

For example, if I had a website under http://localhost/testsite/ and in it's index.php file I had a reference to the stylesheet using the following code..

    <link rel="stylesheet" type="text/css" href="/css/layout.css" />

Could I then make that load /localhost/testsite/css/layout.css?

To get around this problem, I set up localhost subdomains for each site which although works, is not ideal.

Many thanks.
Using .htaccess to set a sub directory as root directory
===

Is there a way to use htaccess to tell a subdirectory to act as the root for the entire site?

For example, if I had a website under http://localhost/testsite/ and in it's index.php file I had a reference to the stylesheet using the following code..

    <link rel="stylesheet" type="text/css" href="/css/layout.css" />

Could I then make that load /localhost/testsite/css/layout.css?

To get around this problem, I set up localhost subdomains for each site which although works, is not ideal.

Many thanks.