Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

subdomain forwarding

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  session_mm...  
Author Message
cmatera

External


Since: Jun 15, 2007
Posts: 2



(Msg. 1) Posted: Fri Jun 15, 2007 8:14 pm
Post subject: subdomain forwarding
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: subdomain forwarding 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sat Jun 16, 2007 7:21 am
Post subject: Re: subdomain forwarding [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: subdomain forwarding 
Back to top
Login to vote
cmatera

External


Since: Jun 15, 2007
Posts: 2



(Msg. 3) Posted: Sat Jun 16, 2007 12:02 pm
Post subject: Re: subdomain forwarding [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jun 16, 1:21 am, Davide Bianchi <davideyeahs....DeleteThis@onlyforfun.net>
wrote:
> On 2007-06-15, cmatera <cmat....DeleteThis@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.
 >> Stay informed about: subdomain forwarding 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
subdomain "forwarding" for a vhost - I have a vhost in the conf file for, say, mydomain.com. I want to have a subdomain called abc.mydomain.com to automatically go to URL, say, abc.anotherdomain.com. How would I do that?

Forwarding SSL - Hi all, We currently have a openssl and apache installation with various secure and non secure sites up and running using a single wild card certificate. We need to forward on one https url directly onto our IIS server without openssl providing the..

does google work better with dns forwarding or 301 redirec.. - can someone please assist me with this issue 2 sites which is beeter for google DNS forwarding or 301 redirector

domain forwarding / apache responding with domain name ins.. - Hi group, trying to figure out what I am doing wrong.. or what is left to do.. situation: got domain with provider a (lets call them godaddy), they forward my domain to my local box (firewall / webserver). domain is called 'mydomain.com' (example)...

Apache port forwarding from HTTPS to HTTP - Hi, I currently have a system that forwards HTTP requests to other ports based on the domain name. IIS listens on one of them and serves web pages, while other applications listen on others and do various other things. It is all working fine, but..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

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



[ Contact us | Terms of Service/Privacy Policy ]