Crayon Syntax Highlighter
The Request cannot be loaded... because of htaccess (2 posts)

  1. marf
    Posted 2 years ago #

    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?



  2. akarmenia
    Plugin Author

    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.