There's a good chance this site won't stay hosted on its current server for more than a year or two. I don't have admin privileges on this server, so I can't install PHP (which I prefer for server-side scripting). When I do move the site, it'll theoretically be to a server I have admin powers...
Solved!
Instead of messing with the current base tag's href value, I tried using document.write to create an entirely new base tag when the script is run on my development directory. It works! Not sure how technically having two base tags might affect the site's legitimacy though... Thanks...
Hey mmerlin, thanks for your reply. I'm getting around the "javascript disabled" problem by first using plain ol' html to declare the base href value to coincide with the live version of my site. Then my script checks to see if it's being executed on the live site or on my development directory...
Hi folks, I'm creating a personal site and am attempting to do so without the use of any server-side scripting for various reasons. I have two directories - one for development, which is set up not to be readily available or visible to the general public, and another for the actual site. I do...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.