ISSE Sweep
Today's main goal was cleaning up ISSE. I've pretty much deleted all of the forwarders and replaced them with a custom error message. This '404.php' page trys to be all encompasing of every file I know I delete or change.
This Error document is broken into the following areas with the following custom scripting:
- All jsp files that were on a root level. These files have all been converted to php.
- by using the following I am able to check for which file shows up and then spit out a custom re-direct to the appropriate page. I came up with this today, when I realized the previous solution didn't account for a trailing "/" which would mean I'd have to check for two possibilities instead of just one.
- $baseError = basename($_SERVER['REDIRECT_SCRIPT_URL']);
- by using the following I am able to check for which file shows up and then spit out a custom re-direct to the appropriate page. I came up with this today, when I realized the previous solution didn't account for a trailing "/" which would mean I'd have to check for two possibilities instead of just one.
- I also have some CCB redirects that were deleted from the root level. These use the same as above, but need their own custom forwarding URL for each.
- The next and most time intensive part was all of the CCB folders that only housed redirect files. These were the hardest because I had to comb the entire site for each folder and fix all old links. And some of these links still pointed to the esig site, which no longer even exists. After fixing the links I used the following syntax:
- I used the following if there weren't any specific files to tend to in the redirect, the beauty of this is that the user can go to /folder/anyfilename.htm and get the same redirect
- $foldername = dirname($_SERVER["SCRIPT_URL"]);
- I would also use $file to check for the foldername only, because the previous snippet would only see the folder name if the user puts a "/filename" after the folders name. By adding this I can check both possibilities:
- $error = $_SERVER['REDIRECT_SCRIPT_URL'];
$path = $_SERVER['REDIRECT_SCRIPT_URL'];
$path_parts = pathinfo($_SERVER['REDIRECT_SCRIPT_URL']); //spits out folder names only when used with dirname
$file = basename($error); // $file is set to "index.php"
$file = basename($path, ".jsp");
- $error = $_SERVER['REDIRECT_SCRIPT_URL'];
- I used the following if there weren't any specific files to tend to in the redirect, the beauty of this is that the user can go to /folder/anyfilename.htm and get the same redirect
- I also had to delete some random folders that were just floating around. They were copies of current folders with the addition of old in the name:
- I used the same methods as stated above
- Finally I deleted 38 folders that housed an old and no longer active newsletter. I took all of the pdf's from each folder and placed them into one central folder and I created an archive page that points to each if anyone ever wants to look at them. This relieves the directory structure by 38 folders and gives one central location to find these files.
The ISSE Directory Structure
Currently I've just been cleaning up the current directory structure and not changing much of anything as it is. My next step is to actually go through these folders and move them around to a more logical structure. As I've already touched upon, but one thing I didn't know is that outside the main folder lies a directory structure put together by the previous person in my position. Although this is a good start, I'm sure I'll have to go further than she did, because I'm sure she didn't follow through completely with this. I first want to get this site up as it is and hopefully give me an opportunity to go over all of the logged broken links and further clean up this site. I still need to go over all the other sites 404 not found errors from this week, which is probably pretty extensive in the ASP directory.
ISSE to-do
- I still need to clean up the CSS code for the nav bar
- I've placed the advanced search on this revamped ISSE site, I need to roll this out to all the other sites. Also I added a search to the 404 page, which I think should be rolled out to all the other sites as well...
- I need to seek approval for some of the things I've done on this site I suppose, since no one is directly responsible for this site I'll seek everyones ok. Elizabeth has yet to respond to any of my emails, so I'm not counting on her approval...
- I've created backups of all the sites before I did any of these php changes. I'm giving a copy to all the respective owners of the websites, this way when someone thinks I deleted something they can look for themselves on the disk before exploring other options.

Comments
Post new comment