{"id":23466,"date":"2024-03-30T11:11:40","date_gmt":"2024-03-30T09:11:40","guid":{"rendered":"https:\/\/www.wjst.de\/blog\/?p=23466"},"modified":"2024-04-01T12:19:08","modified_gmt":"2024-04-01T10:19:08","slug":"htaccess-nightmare","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2024\/03\/htaccess-nightmare\/","title":{"rendered":"htaccess nightmare"},"content":{"rendered":"<p>I have rewritten <a href=\"https:\/\/www.wjst.de\/images\/\">my image website<\/a> last week, collapsing 25 php scripts into 1 while combining it with another 5 javascript files. The interesting point is that most of the server side layout moved now to the client side.<br \/>\nThe website was running <a href=\"https:\/\/de.wikipedia.org\/wiki\/Versionsgeschichte_von_PHP\">basically for 20 years<\/a> while I felt it is too time consuming now to update it one more time always running at risk of some security flaws.<br \/>\nThere is now now a true responsive layout, image upload is now done by a web form and no more by FTP. I am also not storing any more different image sizes while all the processing including watermarking is now done on the fly. This required however some more sophisticated rules for site access.<br \/>\nWriting the htaccess rules was the most complicated. thing where even chatGPT failed.\u00a0 <a href=\"https:\/\/htaccess.madewithlove.com\/\">Only the rules tester<\/a> helped me out&#8230;<\/p>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 05.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>I have rewritten my image website last week, collapsing 25 php scripts into 1 while combining it with another 5 javascript files. The interesting point is that most of the server side layout moved now to the client side. The website was running basically for 20 years while I felt it is too time consuming &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2024\/03\/htaccess-nightmare\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">htaccess nightmare<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[4857,2822,2823,2295,2897],"class_list":["post-23466","post","type-post","status-publish","format-standard","hentry","category-computer-software","tag-htaccess","tag-css","tag-html","tag-images","tag-php"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/23466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=23466"}],"version-history":[{"count":5,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/23466\/revisions"}],"predecessor-version":[{"id":23471,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/23466\/revisions\/23471"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=23466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=23466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=23466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}