[resolved] .htaccess problems (4 posts)

  1. insideREVOLUTION
    Posted 8 years ago #

    When I try to add a "Page" to my WordPress blog, this code is automatically added to my .htaccess file:

    BEGIN WordPress
    # END WordPress

    The file should look like:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?insiderevolution.net [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ http://www.insiderevolution.net/nohotlink.jpe [NC,R,L]

    Anyone know why this does this and how to fix it?

  2. DianeV
    Posted 8 years ago #

    I don't know why it's doing that, but that code basically means that people linking directly to your images (which is called: hotlinking) will get the nohotlink.jpe instead. Did you set up something like that in your web hosting account?

  3. insideREVOLUTION
    Posted 8 years ago #

    I put that code there myself. So yeah, I know what that does. lol. I just searched google for that code. It's the wordpress thing that I'm confused about. It's not really a big deal since I don't use pages. I just thought I would try using pages because it would be easier to edit them using wordpress instead of notepad.

  4. insideREVOLUTION
    Posted 7 years ago #

    to prevent this, I simply put the .htaccess file into each subfolder that i wanted to block hotlinking to. If you have images in the main directory, I'm afraid this method will not work.

Topic Closed

This topic has been closed to new replies.

About this Topic