Ok say what I have done was setup a wildcard subdomain so anything.xugogaming.com will go to the main site in which my existing rewrite modules will serve any fancy pages I’ve associated with it. So that part is setup correctly.
However, what I would like to do is if there’s a specific pattern, like a name, jay-z.xugogaming.com, I would like to to go to the index.php of a folder inside my root directory called authorblog which has a wordpress installation there which I will setup with the MU (multi-user) features. But I don’t to direct every request from jay-z.xugogaming.com into that index.php, if there is a request for image or a file I’d like to load that instead so it all looks and works like a normal/standard setup.
In short it would be setup like this (I think):
jay-z.xugogaming.com/ -> /authorblog/index.php
jay-z.xugogaming.com/wp-admin/css/install.css -> /authorblog/wp-admin/css/install.css
I thought it would be simple enough by using:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[a-z]+-[a-z].xugogaming.com
RewriteRule (^[-a-z0-9/.]+$) /authorblog/$1 [L]
Which handles basic folder names, file names and such. But for some reason that gives me a 500 Internal Server error when that condition is met and the redirect should occur.
What should happen is:
jay-z.xugogaming.com/wp-admin/css/insall.css -> /authorblog/wp-admin/css/install.css
but again I just get that 500 Internal Server error.
Also, what sort of works was
RewriteCond %{HTTP_HOST} ^[a-z]+-[a-z].xugogaming.com
RewriteRule (.*) /authorblog/index.php [L]
Which showed the right page and all, but the css,images, and other media does not work.
Any ideas how I can get this to work? I’m assuming it’s possible, it seems like it should be.