| | |
.htaccess redirect for subdomain
![]() |
•
•
Join Date: Jul 2005
Posts: 18
Reputation:
Solved Threads: 0
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!
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.
•
•
Join Date: Jun 2009
Posts: 124
Reputation:
Solved Threads: 11
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)
- 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)
•
•
Join Date: Jul 2005
Posts: 18
Reputation:
Solved Threads: 0
•
•
•
•
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)
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?
![]() |
Similar Threads
- Page authentication (PHP)
- Trouble with .htaccess & redirecting dynamic URLs (Linux Servers and Apache)
- can somebody help me out (PHP)
- .htaccess www rewrite for local and live site (Site Layout and Usability)
- on links and possibly .htaccess (Existing Scripts)
- Bots & .htaccess (Search Engine Optimization)
- I'm fooling with mod_rewrite... (Linux Servers and Apache)
- mod_rewrite subdomain (Linux Servers and Apache)
- Can php allow me to create whatever.homepage.com address (PHP)
Other Threads in the *nix Software Forum
- Previous Thread: TeX & LaTeX
- Next Thread: (debian - lenny) Getting error code 2 from dpkg trying to install libcups2-dev
| Thread Tools | Search this Thread |





