subdomain forwarding

This is a discussion on subdomain forwarding within the Apache Web Server forums, part of the Web Server and Related Forums category; This is probably an easy thing to fix, but I need some help. I am running wordpress mu on a ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-15-2007
cmatera
 
Posts: n/a
Default subdomain forwarding

This is probably an easy thing to fix, but I need some help.

I am running wordpress mu on a shared hostrocket server. I had
hostrocket setup the virtual hosts/dns configuration necissary for me
to create subdomains w/in wordpress mu. Here's where my mod_rewrite
question comes in:

I have certain subdomains that I am running other processes on...for
example mailer.domain.org is my newsletter mailing program. it's
located in my /home/domain/mailer subdirectory. dev.domain.org is my
development area, and it's also located in /home/domain/dev
subdirectory. I'm trying to create a mod_rewrite rule that will
forward any http requests to mailer.domain.org etc to those specific
subfolders. Here's what I have - which I culled from a forum.

RewriteCond %{HTTP_HOST} !^(www\.)?knowmercy\.org$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.knowmercy\.org$ [NC]
RewriteCond %{DOCUMENT_ROOT}/%2%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]

RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^(www\.)?knowmery\.org$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.knowmercy\.org$ [NC]
RewriteRule ^(.*)$ /%2/$1 [QSA,L]

It works for my mailing program, however it doesn't let me log into my
calendar program (events.knowmercy.org/login.php) that forwards back
to the knowmercy.org...I'm confused and in need of help.

Thanks

Chris Matera

  #2 (permalink)  
Old 06-16-2007
cmatera
 
Posts: n/a
Default Re: subdomain forwarding

On Jun 16, 1:21 am, Davide Bianchi <davideyeahs...@onlyforfun.net>
wrote:
> On 2007-06-15, cmatera <cmat...@gmail.com> wrote:
>
> > I have certain subdomains that I am running other processes on...for
> > example mailer.domain.org is my newsletter mailing program. it's
> > located in my /home/domain/mailer subdirectory. dev.domain.org is my
> > development area, and it's also located in /home/domain/dev

>
> Can't you use VirtualHosts instead of rewrite? It seems a much
> better solution.
>
> Davide
>
> --
> Windows 95 is crash compatible with Windows 1.0, 2.x, and 3.x


I can't use virtual hosts because I am using a hosting company, and
wordpress mu suggested this way in the readme.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0