Apache httpd.conf Redirect Subdomain
Hello all,
I'm trying to do this without using mod_rewrite in Apache. Basically, I want to be able to redirect http://www.mydomain.com/webmail/ to https://www.mydomain.com/webmail/ as well as my subdomain http://webmail.mydomain.com to https://webmail.mydomain.com Here is my httpd.conf file: Code:
NameVirtualHost *:80 Thanks in advance! :) |
Quote:
Code:
Redirect permanent / https://webmail.mydomain.com |
Awesome thanks. I can't believe I missed that. I tried it earlier but I think it was outside the virtualhost tags and so it was directing all traffic to the subdomain (obviously not what I wanted).
Thanks again! :) |
Redirect certain request to an given URL
Hi,
I have question regarding redirecting certain request to given URL For Example: Would like to redirect all request other than /Webmail to //webmail.raj.net... Can you please let me know how to do it... I need your help ASAP..... Great Thanks Raj & Karthik |
It would be best if you start your own new thread with the topic that describes your problem and maybe refer to this thread in it if it's related.
Don't pull out the threads already given solution which is not yours. If this tread doesn't help you then start a new thread with your problem described. |
All times are GMT -5. The time now is 06:00 PM. |