Exclude folder from redirect

WordPress redirects everything in wp-content if accessed directly to 404 with the following:

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$   - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> 

What I want to do is not redirect the contents of a sub folder example.com/wp-content/uploads/event/images/

Any ideas how I can achieve this?

how to exclude images from scrset based on file size (kb)

when I upload optimized jpg images to WordPress, I encounter the following problem: The original image file size is smaller than the auto-generated images (for the 1st and sometimes even the 2nd "smaller" auto-generated size).

Example: Original Image File: example.jpg (77kb, 816 * 612px)

Auto-generated Files: example-768×576.jpg (112kB), example-600×450.jpg (76kB)

anything I can do about this? The resulting problem is scrset, it doesn´t make any sense to deliver a scaled down image to the user if the file size is bigger or equal to the original file! Is there a functionality to "teach" scrset to pay attention to the file size as well?

-thanks in advance!

exclude post according to assigned category WordPress

I have this code that shows the most viewed publications, I would like to exclude the entries assigned to a specific category, for example the ID of the category I want to exclude is "4"

  <div style="text-align:center;margin-top:4px">          <?php $  my_query = new WP_Query('meta_key=post_views_count&orderby=meta_value_num&order=DESC&showposts=6&ignore_sticky_posts=1'); while ($  my_query->have_posts()) : $  my_query->the_post(); $  do_not_duplicate = $  post->ID; ?>         <div class="recomend-posts">         <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?> (<?php $  values = get_post_custom_values("Year"); echo $  values[0]; ?>) online">             <?php if ( has_post_thumbnail() ) {?>                 <?php the_post_thumbnail('index-thumbnail');?>             <?php }else{ ?>                 <img src="<?php bloginfo('template_url');?>/images/no-image.jpg" alt="<?php the_title();?>" />             <?php }?>         </a>     </div>         <?php endwhile; wp_reset_query(); ?>         </div> 

any ideas? thanks

How to exclude a category returned by get_categories from function.php?

I have a plugin that create my website sitemap. It starts by getting all categories with get_categories and then gets all pages for each. However I have one category that must not be included then I did that in the plugin code:

$  args['exclude']=2; $  cats = get_categories( $  args ); 

The problem is that if the plugin replace the file my modiofication will be deleted, I tried with that:

function exclude_cat($  taxonomy, $  args) {          $  args['exclude']=2;     return $  args; }  add_filter('get_categories_taxonomy', 'exclude_cat', 10, 2); 

But then no category is returned at all, I think I’m not using it correctly but I don’t find examples.

How to exclude rule 930120 for google oauth

I’ve this error:

ModSecurity: Warning. Matched "Operator `PmFromFile' with parameter `lfi-os-files.data' against variable `ARGS:scope' (Value: `email profile https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/useri (16 characters omitted)' ) [file "/usr/local/owasp-modsecurity-crs-3.0.2/rules/REQUEST-930-APPLICATION-ATTACK-LFI.conf"] [line "84"] [id "930120"] [rev "4"] [msg "OS File Access Attempt"] [data "Matched Data: .profile found within ARGS:scope: email profile https:/www.googleapis.com/auth/userinfo.profile https:/www.googleapis.com/auth/userinfo.email openid"] [severity "2"] [ver "OWASP_CRS/3.0.0"] [maturity "9"] [accuracy "9"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-lfi"] [tag "OWASP_CRS/WEB_ATTACK/FILE_INJECTION"] [tag "WASCTC/WASC-33"] [tag "OWASP_TOP_10/A4"] [tag "PCI/6.5.4"] [hostname "a.a.a.a"] [uri "/***/create_account_oauth.php"] [unique_id "159608684932.394214"] [ref "o53,8v144,116t:utf8toUnicode,t:urlDecodeUni,t:normalizePathWin,t:lowercase" 

and I’ve created this exclusion rule for that:

SecRule REQUEST_URI "@beginsWith /***/create_account_oauth.php" \         "phase:2,log,pass,id:19023,ctl:ruleRemoveById=930120" 

what I’d like to do is to refine the exclusion for googleapis only. I’m think chaining the rule with another one to match googleapis in the data field. Is that what you’d recommend? It seems difficult to find resource on chaining. Can someone please help? Thank you.

Can I exclude characters from understanding my magically understandable speech from the monk’s Tongue of the Sun and Moon feature?

The rules for the monk ability Tongue of the Sun and Moon state:

Starting at 13th level, you learn to touch the ki of other minds so that you understand all spoken languages. Moreover, any creature that can understand a language can understand what you say.
PHB, pp.79

The text says that this ability is something you learn to do, not something that simply happens to you, so it’s not necessarily always on. Further, it seems logical to say that this is something you would do actively. That is, you could choose not to touch someone’s mind, thereby excluding them from understanding you. You could also choose not to understand someone yourself, just in case they’re telling the funniest joke in the world, or using a subliminal trigger.

Assuming you can choose not to touch someone’s mind, let’s reason further. Suppose you’re speaking and don’t know that there is someone listening in nearby. Would they understand you, i.e. is the default that you are or aren’t touching someone’s mind? Similarly, if you are speaking to a large group of people, would you have to focus on all of them at once for them to understand you? Would this take effort? Is there a range?

My questions are:

  1. Can you exclude some characters from understanding you while allowing others to do so?
  2. Can you decide not to understand someone who is speaking?

Basically, these boil down to: Can you choose not to touch someone’s mind?

Then, assuming that the answer to the above is yes:

  1. Do you have to know someone is listening in order for them to understand you?
  2. Is there a limit to the number of people you can affect? A range?

I also asked this related question about the mechanism of the ability.

Exclude category from function – PHP

I have the following code in my functions.php to move product category description to the bottom of the category page.

remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 100 ); 

However, I need to exclude a few product categories from this (and keep them at the top), how would I convert my code into a function that can achieve this?