Support » Fixing WordPress » htaccess – different if URL is mydomain.com/blog?

  • Resolved gcoghill

    (@gcoghill)


    My webhost asked me to add hotlink protection via htaccess to track down some CPU hogging.

    My blog’s URL is mydomain.com/blog

    I used this online tool to generate the htaccess code: http://www.htaccesstools.com/hotlink-protection/

    When I entered the URL, I entered it exactly as it is above. Is that correct? Also, does it matter where in the htaccess file the code is placed? I have it placed at the end of the file.

    It is preceded by the WP-Super Cache htaccess code, and then the standard WP permalinks code. After those two I added the hotlink code.

    When testing it on this page: http://www.htaccesstools.com/test-hotlink-protection/

    It doesn’t seem to be working.

    I am not sure what I am doing wrong. I use htaccess in other non-WP areas of my site and it works OK (for 301 redirects and such) so I know htaccess is enabled and works.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘htaccess – different if URL is mydomain.com/blog?’ is closed to new replies.