• Resolved insiderevolution

    (@insiderevolution)


    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)$ https://www.insiderevolution.net/nohotlink.jpe [NC,R,L]

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?

    Thread Starter insiderevolution

    (@insiderevolution)

    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.

    Thread Starter insiderevolution

    (@insiderevolution)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htaccess problems’ is closed to new replies.