Click here to Skip to main content
15,891,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone;

I have a site on apache and have a problem I cannot sort out.

Section 1: The following work as expected
1. http://www.x.com/ redirects to https://www.x.com/ 
2. http://www.x.com/a/ redirects to https://www.x.com/a/
3. http://www.x.com/a/b/ redirects to https://www.x.com/a/b/



Section 2: The following give error
4. http://www.x.com/a 
5. https://www.x.com/a 
5. http://www.x.com/a/b 
6. https://www.x.com/a/b 



Section 3: What I need is the following (In addition to Section 1)
7. http://www.x.com/a redirects to https://www.x.com/a/
8. http://www.x.com/a/ redirects to https://www.x.com/a/ (This is same as 2 and already works)
9. http://www.x.com/a/b redirects to https://www.x.com/a/b/
10. http://www.x.com/a/b/ redirects to https://www.x.com/a/b/ (This is same as 3 and already works)



Any help or pointer appreciated. In response please indicate if change is required in .htaccess or apache2.conf.

Thanks
I.
Posted
Updated 3-Oct-15 21:54pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900