I am using .htaccess to rewrite another domain I acquired to some sub-directory on my small server and I am getting troubles using the CSS files. So my website reaches http://world wide web.myserver.com/ and my new domain http://world wide web.mynewdomain.com/ has been rewritten to http://world wide web.myserver.com/folder/. This really works generally. The only issue would be that the CSS file recommended the HTML files within the sub-directory does not load basically key in http://world wide web.myserver.com/. This is actually the .htaccess code I personally use:

RewriteEngine on

RewriteCond % ^(mynewdomain.com)(:80)? [NC]

RewriteRule ^(.*) http://world wide web.mynewdomain.com/$1 [R=301,L]

RewriteCond % world wide web.mynewdomain.com

RewriteCond % !^/folder

RewriteRule ^(.*)$ folder/$1 [L]

The very first two line is pressure the world wide web. I am including it here just just in case they cause some interference. The HTML file is within http://world wide web.myserver.com/folder/index.html. The CSS file is within http://world wide web.myserver.com/folder/mycss.css. It does not work basically include it such as this:

<link rel="stylesheet" href="mycss.css" type="text/css" media="all" />

It does not work basically include it such as this either:

<link rel="stylesheet" href="http://world wide web.mynewdomain.com/mycss.css" type="text/css" media="all" />

It Will work basically include it such as this.

<link rel="stylesheet" href="http://world wide web.myserver.com/folder/mycss.css" type="text/css" media="all" />

Funny enough, links work all right. Even when a hyperlink to http://world wide web.mynewdomain.com/mycss.css will connect to the CSS file because it should.

I understand which i curently have a workaround, however i do not get the issue and I must comprehend it before I move onto do more difficult things. Halp!

I suppose the very fact the first two good examples are missing the /folder/ area of the url is simply a typo?

Sorry about writing this being an answer - I do not yet possess the repetition to comment.