hi,
I am using cPanel 84.08 VPS cloud - CentOS 7.7 MariaDB 10.3
I am having an issue with subdomain redirects
so I have a domain called: example.com
I have this set to https:// and to redirect to www.example.com working great...
I then create a sub domain: work.example.com
i then turn on https:// then go to redirects and try to redirect the subdomain without www. but it throws error, because it is the same path / Folder
so then I go back to redirect and select : example.com
then I add the folder /work
then I add http://work.example.com
then I select: Only redirect with www.
it allows this redirect..
I then go to http://example.com/work but it doesn't redirect
so i select: redirect with or without www
and that seems to work but, the only issue is that I can type http://www,work.example.com and it doesn't redirect to https://work.example.com
So not sure... how I can achieve both of these redirects ?
I want anyone who types in http://www.work.example.com to redirect to https://work.example.com
also if someone types in http://example.com/work or http://www.example.com/work or https://www.example.com/work
to redirect to https://work.example.com
is this redirect I am mentioning even possible? to redirect the folder and the www to non www in work.example.com subdomain via cPanel redirect?
hope i didn't confuse anyone I am trying to write as much as possible so you can understand what I am trying to accomplish
thanks in advance for anyone who can help using redirect via cPanel or I can just use htaccess with some code to make this work correctly
Spiro
I am using cPanel 84.08 VPS cloud - CentOS 7.7 MariaDB 10.3
I am having an issue with subdomain redirects
so I have a domain called: example.com
I have this set to https:// and to redirect to www.example.com working great...
I then create a sub domain: work.example.com
i then turn on https:// then go to redirects and try to redirect the subdomain without www. but it throws error, because it is the same path / Folder
so then I go back to redirect and select : example.com
then I add the folder /work
then I add http://work.example.com
then I select: Only redirect with www.
it allows this redirect..
I then go to http://example.com/work but it doesn't redirect
so i select: redirect with or without www
and that seems to work but, the only issue is that I can type http://www,work.example.com and it doesn't redirect to https://work.example.com
So not sure... how I can achieve both of these redirects ?
I want anyone who types in http://www.work.example.com to redirect to https://work.example.com
also if someone types in http://example.com/work or http://www.example.com/work or https://www.example.com/work
to redirect to https://work.example.com
is this redirect I am mentioning even possible? to redirect the folder and the www to non www in work.example.com subdomain via cPanel redirect?
hope i didn't confuse anyone I am trying to write as much as possible so you can understand what I am trying to accomplish
thanks in advance for anyone who can help using redirect via cPanel or I can just use htaccess with some code to make this work correctly
Spiro