Support » Plugin: Crayon Syntax Highlighter » The Request cannot be loaded… because of htaccess

  • Hi Akarmenia,

    I figured out why I was having the issue, but I’m not quite sure how to solve it or what file I can make an exception to the rule with.

    Your plugin works fine when I don’t have a .htaccess file in ./wp-content/.htaccess

    My htaccess has the contents:

    Order deny,allow
    Deny from all
    <Files ~ ".(xml|css|jpe?g|png|gif|js)$">
    Allow from all
    # directory browsing
    Options All -Indexes

    So when I upload this to my wp-content directory, then I start getting that error. Do you know what I can do to keep this protection, but still have crayon syntax highlighter still work?


Viewing 1 replies (of 1 total)
  • Plugin Author akarmenia


    I’m not sure if that affects the PHP scripts as well. If it does, then you’d need to add:
    txt – language files
    po,mo – translations
    fonts – eot, svg, ttf, woff

    Perhaps it’s easier to deny access to certain files you know are a potential security risk. Say if you had .doc files or something you didn’t want others to see?

Viewing 1 replies (of 1 total)
  • The topic ‘The Request cannot be loaded… because of htaccess’ is closed to new replies.