lighttpd - rewriting multiple subdirectories possible?
I've got rewrite working fine at the root of my domain using this rule:
#
$HTTP["host"] == "
url.rewrite-once = (
"^/(..php|wp-content/|wp-admin/|wp-includes/)." => "$0",
"^/([^,]*)/?$" => "/index.php/$1"
)
}
#
What I would like to do is evaluate several blogging/cms platforms at once, installing them in folders like:
epicgadgets.com/wordpress/
epicgadgets.com/wpmu/
epicgadgets.com/joomla/
epicgadgets.com/drupal/
and have each of those installs able to rewrite URLS back to the root of its subfolder.
If that's not doable, I could even go for something like this:
wordpress.epicgadgets.com
wpmu.epicgadgets.com
joomla.epicgadgets.com
drupal.epicgadgets.com
Is either of those things possible?
3 Replies
$HTTP["host"] == "wordpress.epicgadgets.com" {
# Rewrite rules for Wordpress here
}
$HTTP["host"] == "joomla.epicgadgets.com" {
# Rewrite rules for Joomla here
}
$HTTP["host"] == "drupal.epicgadgets.com" {
# Rewrite rules for Drupal here
}
and so on. Repeat as necessary.