Server inconsistent with domain name and/or root folder designation
This is a followup to my other thread, now with a lot more information and a deeper/different problem.
http://www.dynamicdrive.com/forums/s...tent-on-reload
I use GoDaddy and I've set my domain thebrb.com to go to a directory in the root called thebrb.com/. Simple enough. It also works consistently. Check the homepage (or any other) to confirm that.
But something is very wrong when a page is missing. The server'sdefault 404 page is shown below by a link to a non-existent location:
Here's a demo page:
http://thebrb.com/nopage
Note that I have no 404 page setup on that site. On other sites on the same server I do have 404 pages and they load either way, both times. (404 with .htaccess works, for the record.)
So the fact that I don't have a 404 page actually is helpful. Now I can see what's wrong.
In my previous thread, I explained that .htaccess with mod_rewrite was inconsistent on the server-- it worked about half the time and inconsistently on reloading. I had no idea what was causing it, and I was pretty sure my .htaccess code was correct. Well, I was right. Something is very wrong at the server level:
Reload the demo page several times, paying close attention to the "requested URL"
I get either:
OR:
Note the very subtle change in the main (domain-level) directory.
To be clear: this is a shared hosting account where "/" is my root directory. These are subfolders I created and associated with the domains by using GoDaddy's default "select a folder for this domain" setting.
Other domains do the same thing; I've checked. Often the "." gets replaced by a random letter.
This is incredibly weird, and I think I should give GoDaddy tech support a call.
But first... any ideas?
What ends up happening is the following:
1. 404 pages do weird things. No big deal, and in fact I can cover that up by a custom 404 page, which for whatever reason works consistently.
2. .htaccess with mod_rewrite works about half of the time, I assume when the directory structure would be correct on the 404 page.
3. .htaccess with mod_rewrite completely fails when it appears to be going a level deeper, at least with some settings. So if I'm using a/index.php to handle requests for all subdirectories such as "a/b/c/" then I get a permanent 404 (with randomly changing URL like this) that never loads to the page it should be-- the server seems to be having a fit because the page doesn't exist, even though .htaccess is supposed to be catching that.
I'm about ready to switch hosts. This is unacceptable. And it's going to be very complicated to explain to tech support.