.htaccess redirect for subdomain

Reply

Join Date: Jul 2005
Posts: 18
Reputation: arrbug is an unknown quantity at this point 
Solved Threads: 0
arrbug arrbug is offline Offline
Newbie Poster

.htaccess redirect for subdomain

 
0
  #1
Jul 6th, 2009
Hi All:

So here's the problem:

I want a subdomain, email.mydomain.com, to redirect to the google apps website we use for our office:

http://mail.google.com/a/mydomain.com

I set up the subdomain through our host to point to mydomain.com/email
Then I used 301 redirect to redirect
mydomain.com/email, mydomain.com/email/index.html to http://mail.google.com/a/mydomain.com

However, typing email.mydomain.com only takes me to mydomain.com/email/index.html and the redirect doesn't work. Any suggestions?

Any suggestions? Maybe using mod_rewrite?

Thanks!
Last edited by arrbug; Jul 6th, 2009 at 9:51 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 124
Reputation: thewebhostingdi has a little shameless behaviour in the past 
Solved Threads: 11
thewebhostingdi thewebhostingdi is offline Offline
Junior Poster

Re: .htaccess redirect for subdomain

 
0
  #2
Jul 7th, 2009
You do not need to use rewrite rules. You just go to the DNS zone editor of your domain

- Delete A record that has "email" as a record name
- Add CNAME pointing to ghs.google.com and "email" as a record name
- Login to in your google apps as administrator and setup a web mail URL there. (email.yourdomain.com)
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 18
Reputation: arrbug is an unknown quantity at this point 
Solved Threads: 0
arrbug arrbug is offline Offline
Newbie Poster

Re: .htaccess redirect for subdomain

 
0
  #3
Jul 7th, 2009
Originally Posted by thewebhostingdi View Post
You do not need to use rewrite rules. You just go to the DNS zone editor of your domain

- Delete A record that has "email" as a record name
- Add CNAME pointing to ghs.google.com and "email" as a record name
- Login to in your google apps as administrator and setup a web mail URL there. (email.yourdomain.com)
Hi! Thanks for the reply. Here's the problem:

The client I'm working with had already purchased their domain name from a domain name service that does not have hosting available. They do not want to pay the extra $10 to switch the domain over to my hosting service.

The domain name company cannot change of CNAME without using their Nameservers. However, I need to use my hosting company's namesavers.

Ideas?
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 124
Reputation: thewebhostingdi has a little shameless behaviour in the past 
Solved Threads: 11
thewebhostingdi thewebhostingdi is offline Offline
Junior Poster

Re: .htaccess redirect for subdomain

 
0
  #4
Jul 10th, 2009
If you want to use your hosting company's name server, that means you will use your hosting company's DNS servers.

You can contact them(your hosting provider) to add the required CNAME record for Google Apps.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the *nix Software Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC