King Rat (gkr) wrote,
King Rat

I am my own worst enemy - htaccess mod_rewrite

I noticed some sites leeching off images on Rat's Reading.

So I played around with .htaccess to prevent hot-linking. I used cPanel to generate the rules, then I played with them. I need Google Reader, Bloglines, Livejournal, etc. to be able to display the images. It got too complicated so I decided it was more trouble than it was worth. I used cPanel to turn off the hotlink protection.

Then I headed over to mom's, to Costoco, to Bellingham for coffee, to the gym, back to mom's and then home. I got home and realized I had no hits to Rat's Reading since I left. I go to my home page, and that comes up. But every single post errors out.

I look at the logs. I poke around for 5 minutes or so. Then I realized that cPanel turned off the Rewrite engine when it turned off hotlink protection. The Rewrite engine is required to display individual posts. I turned it back on.

And here I thought I was going to go a month with every day having 20 or more hits. But I fear google and other search engines may have flagged my site as down, and it will take a while for their indexes to be updated.
Tags: rat's reading

  • Last post

    I don't plan to delete my LJ (I paid for permanent status, dammit), but this will be the last post. I don't plan to read it anymore, either…

  • Unemployed

    Turns out my insurance is cut off at midnight tonight, not the end of the month. In a way, that's a good thing. Now I'll move my appointment…

  • Home from the cruise, off to Sunnyvale

    A week off, but tomorrow I head to the home office for a week there.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened