Hello again:
I have found the culprit.
I discovered that when I create a clean directory called foo, and put an index page in it, I can address it as
www.example.org/foo and have it show up as
http://example.org/foo/.
However, I had some directories which housed a subdomain. So I created a bunch of these, such that if you remember my name, example.org, you can insert stuff in front of it, like for a page filled with selected links to the FCC web site, I would set up fcc.example.org, it would be in the /fcc/ folder on my site. It was not accessible as example.org/fcc/, however, only as fcc.example.org/.
Trying to use server side includes and have a site-wide look and feel across subdomains required that I set up a set of includes in every subdomain, change every one of them to make a single change to the look of the site, a pain in the neck.
Use of <base href="example.org/" /> would cause all of my local page links to go to the home page of the site instead of this page. So I had to code every link as
http://whatever.example.org/#reference to make stuff work. Working from a template, I had toi remember to recode all the links. A royal pain in the tush that was.
So I redirected foo.example.org/ to example.org/foo/. At least now I had a single set of server sides for the entire site. And I did not need a base href.
However, in each of these directories resided an htaccess file containing the likes of this:
And in each of these directories, even though the redirection was on and I could address as either foo.example.org or as example.org/foo/, this code negated my effort to stamp out
www.example.org/foo/.
Oh I tried to add RewriteCond %{HTTP_HOST} ^www.example.org/foo$ [OR]
ahead of the rules up there, it was ignored. At one time I came up with a
200!
Internal Server Error!
from my 500! page. Obviously, I had things so bottled up that I developed a 500 code, displayed the page, which then reported 200 OK.
Oh, and I had to find out how to flush Firefox cache before I could get rid of the internal server error, because Opera brought up the page without an error in the meantime.
I went to cpanel, did away with all on-site subdomains, and then went to my ftp and gassed all the redirection htaccess files. My folders now all work just fine.
I hope this may be of some help to others. As an aside,
I use htaccess files in Windows xp, running Apache server on my localhost, and I must say they are easy to work with if I know what to put in them!
First of all, do not try to rename a file in Windows Explorer (your desktop, My Computer). They "require" a filename in front of the extension.
Replace Notepad with MetaPad, or any number of other Notepad replacements. MetaPad will let you name a file as .htaccess, and it is ready to go. Notepad will also, if you jump through its hoops. Every time either place the name in quotes or select All file types.
Arachnophilia 4.0 for Windows (I never got used to the Java version's look and feel) also will handle the .htaccess naming issue. And I am sure there are better editors out there, but I have heavily modified this one with regard to templates and toolbars to write xhtml strict code with it.
Kind regards, and thank you for putting up with my question.
Larry