Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 13, 2009 9:08 pm 
Offline
Senior Newbie

Joined: Sat May 09, 2009 2:48 pm
Posts: 6
I'm having trouble trying to get mod_rewrite working and I'm beginning to wonder if I'm trying to do the impossible.

I've got rewrite working fine at the root of my domain using this rule:

###
$HTTP["host"] == "www.epicgadgets.com" {
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?


Top
   
 Post subject:
PostPosted: Wed May 13, 2009 9:15 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
The second approach would be a lot easier to implement, as it would totally isolate each CMS you're trying out.

Code:
$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.


Last edited by hybinet on Wed May 13, 2009 9:17 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed May 13, 2009 9:17 pm 
Offline
Senior Newbie

Joined: Sat May 09, 2009 2:48 pm
Posts: 6
Ok, I'll give the ... subdomain? option a try. I kinda like that more anyway. Thanks.


Top
   
 Post subject:
PostPosted: Wed May 13, 2009 11:10 pm 
Offline
Senior Newbie

Joined: Sat May 09, 2009 2:48 pm
Posts: 6
Worked like a charm! Thanks so much - doing it via subdomains was my first choice anyway.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group