{"id":803,"date":"2005-10-26T13:14:00","date_gmt":"2005-10-26T13:14:00","guid":{"rendered":"\/?p=803"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T07:00:00","slug":"princessleiacom-work","status":"publish","type":"post","link":"https:\/\/princessleia.com\/journal\/2005\/10\/princessleiacom-work\/","title":{"rendered":"PrincessLeia.com work"},"content":{"rendered":"<p>As planned I spent Sunday working on PrincessLeia.com. I&#8217;m quite pleased with the work that was acomplished.<lj-cut><\/p>\n<ul>\n<li>Went through files in root website directory and removed old\/unused files<\/li>\n<li>Went through CSS, greped all files to figure out what CSS goes with what pages, moved CSS files to own directory and updated pages accordingly<\/li>\n<li>Edited CSS on index.php and menu pages so the links are easier to see &#8211; and pink\/purple!<\/li>\n<li>Used .htaccess to prohibit linking of images and sounds from specific trouble sites (myspace, migente)<\/li>\n<li>Used .htaccess to set up rules to direct .html requests to .php if .html does not exist and .php does<\/li>\n<li>Removed custom 404 that pointed to missing.html<\/li>\n<\/ul>\n<p>Going through the files was not so difficult. <\/p>\n<p>Going through the CSS was a pain in the ass that I&#8217;ve been putting off for months. <\/p>\n<p>Setting up the blocking of hotlinking for certain pages was fun. I didn&#8217;t want to block all hotlinking, as that means I can&#8217;t point people to a <i>princessleia.com\/image.jpg<\/i>, which would suck, and I would be restricted myself as to where I could post my images, having to edit my rules all the time when I want to post somewhere else. But some people steal a considerable amount of bandwidth, like the users on myspace and users on migente who think it&#8217;s appropriate to hotlink wav files that play as the page loads *groans at bandwidth usage from that* I redirected image requests to a small image file saying &#8220;This image is hosted by princessleia.com hotlinking is prohibited&#8221; (I thought about putting up something more perverse, but these people are generally just ignorant, not stealing bandwidth on purpose, and I&#8217;m not mean. Besides, I don&#8217;t want that practice associated with me). Sound file requests are simply forbidden from certain domains.<\/p>\n<p>Setting up the .html to .php apache redirect was fun too. This will be a great help for when I&#8217;m moving all my pages to .php. No broken links! No army of softlinks! Just a little bit of apache rewrite magic. I hope to undertake the site wide move to .php in the near future, site-wide redesigns by just changing a CSS file will be a wonderful thing.<\/p>\n<p>The removal of the custom 404 is something I&#8217;ve been meaning to do for a while. The trouble with it is that when you type something wrong it redirects you to missing.html, which doesn&#8217;t allow for you to fix the typo in your address and get to the correct page, this is very annoying. Besides, I had to take the cute penguin image off the custom page because it was a waste of bandwidth so the page wasn&#8217;t terribly exciting anyway.<\/p>\n<p>Plans now? The site-wide conversion to .php that I mentioned. General work on a few sections on the site that were neglected and some not even linked (Heritage Trails project, Family photos project, getting more of my writings from LJ to a home on my site). And I NEED to update my resume in the very near future.<\/lj-cut><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As planned I spent Sunday working on PrincessLeia.com. I&#8217;m quite pleased with the work that was acomplished. Went through files in root website directory and removed old\/unused files Went through CSS, greped all files to figure out what CSS goes with what pages, moved CSS files to own directory and updated pages accordingly Edited CSS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-803","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/posts\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/comments?post=803"}],"version-history":[{"count":0,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/posts\/803\/revisions"}],"wp:attachment":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/media?parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/categories?post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/tags?post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}