Hi, I hope I'm asking this in the right forum?
I've been searching for an answer to this problem for 5 days, and hopefully someone here knows the solution.
Firstly, I'd like to provide the information that I too am a programmer, experienced in Perl, PHP, JS, Java, VRML, and a little C++, Python, and Delphi.
I have a domain: example.com
that I've created a full independent subdomain for which does not live under the root folder path of example.com
This is a fully qualified subdomain with it's own dns and it's own file path from root that does not connect to the main domain example.com at all. I created the subdomain in WHM on my server backend.
The subdomain is for example:
Then, under the subdomain.example.com folder path (in CPanel) I created the subs of:
Now, the root paths for subdomain.example.com
The root path for the subs of subdomain.example.com
These are browser reachable by both www and non-www versions.
Google has issues with this big time.
I've tried redirecting subdomain.example.com
from www to non-www
via .htaccess file located at
and it works fine and does the redirect from www to non-www
But, it forces the subs to their respective folders Vs being treated as sub.subdomain.example.com
In other words, the subs go to:
If I put 301 .htaccess redirects in for
into the .htaccess file located at
it creates an infinite loop
If I place .htaccess 301 redirect for JUST
it redirects www to non-www
then placing the same for the subs located in their respective folders:
it redirects the sub.subdomains from www to non-www
BUT breaks the www to non-www redirect for
Does anyone have any idea how the heck this is supposed to be done? Quite honestly, I'm going out of my mind trying to find the answer.
At help would be very greatly appreciated!
Also, I like this forum and plan to stick around. I'm a good programmer and maybe I can help someone else when they need answers, too?