Hi,
On a default installation of CentOS (on AWS), I have the following
configuration in my conf.d directory. So, besides for this configuration, I
just have the default conf/httpd.conf file.
What I am trying to achieve is a configuration that:
1) If URL starts with <a href="http://www.example.com" title="http://www.example.com">http://www.example.com</a>, it goes to <a href="http://example.com" title="http://example.com">http://example.com</a>
2) If URL starts with <a href="https://www.example.com" title="https://www.example.com">https://www.example.com</a>, it goes to
<a href="https://example.com" title="https://example.com">https://example.com</a>
3) If URL starts with either <a href="http://example.com" title="http://example.com">http://example.com</a> or <a href="https://example.com" title="https://example.com">https://example.com</a>, it
stays the same.
I was able to achieve #1 with the configuration below.