Category archive rewrite rule to include category/subcategory?

I’d like to have my category archive (category.php) accessible using via a url structure like:

For example, I’ve got “health” as a category and “smoking” as its subcategory. The following:

  • (and even)

all work fine.

But gets a 404.

Is there something under Settings->Permalinks that will fix this? Do I need to put a rewrite rule of some kind in functions.php?


Is there a rule for how to handle creative use of spells?

During a fight in a semi-flooded room, one of my players wanted to use Shocking Grasp on the water:

Lightning springs from your hand to deliver a shock to a creature you try to touch. Make a melee spell attack…On a hit, the target takes 1d8 lightning damage, and it can’t take reactions until the start of its next turn.

Wanting to reward him for a creative use of the spell, I allowed it, using an attack roll of AC 10 and hitting all creatures within 10ft of the spot (including caster).

Is there any rule for these situations? I want to reward creativity without unbalancing spells that are meant for single-target use.

Rewrite rule to load images from production makes no difference

I’m trying to adapt the rewrite rule given in Develop Locally, Use Images from Production to do the very same thing on my local dev site (which runs on XAMPP).

This is how the development site’s .htaccess looks, with the snippet added towards the end of it (URL replaced with equivalent, obviously):

<IfModule mod_php.c> php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300 </IfModule>  #START WORDPRESS  <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/  # Redirect About and Library to first sub page  RewriteRule ^about/?$   /wordpress/about/history/ [L,NC,R=301] RewriteRule ^the-library/?$   /wordpress/the-library/gallery/ [L,NC,R=301]  RewriteRule ^index\.php$   - [L]  RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L]  # If images not found on development site, load from production  RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$   RewriteRule ^(.*)$$  1 [QSA,L] </IfModule>  #END WORDPRESS 

The rewrite rule doesn’t seem to be making a difference, whether with the HTTPS or HTTP version of the URL. Images unavailable for the dev site simply don’t display, even when the same images load fine for the production site.

I also had no luck trying to adapt the rewrite rule found in this slightly different question applying to WordPress Multisite.

Additionally, I previously added a filter to stop WordPress from modifying the .htaccess file, so am pretty sure that this isn’t the cause of the problem.

What, if anything, is wrong with my rewrite rule here that’s causing it to fail?

Udev rule not executing on usb insertion, should run script in background

i wrote a udev rule and placed it in /etc/udev/rules/90-wifi.rules

ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", RUN+="sh /usr/local/bin/" 

It should run on every inserted usb device.

It should start the script /usr/local/bin/

#!/bin/bash /usr/local/bin/ & disown 

And that should start /usr/local/bin/

#!/bin/bash  sudo systemctl start hostapd sudo ifup br0 sudo systemctl restart dnsmasq touch /home/user/started 

But it does not… The scripts are all executable and I can start them from command line and they do what they are supposed to do. I tried having them in differente locations, started in the home folder moved them to usr/local/bin. Made the wrapper with disown for background processes but still no results. Does anybody have an idea?

Thanks in advance

Does the rule on falling damage (1d6 damage for every 10 feet fallen) only apply to Small and larger creatures?

Does the rule on falling damage (1d6 damage for every 10 feet fallen) only apply to Small and larger creatures?

Suppose flying insects with 1 hit point attack the party, and a caster casts sleep into the air where they are flying 10 feet above. Should they take 1d6 falling damage?

This seems ridiculous for Tiny-sized creatures/insects who are designed to be able to withstand falls due to their exoskeleton and light body weight. If they do take damage, then should they immediately wake up from the sleep when they hit the ground?

What would be the balance implications of a house rule allowing a readied spell to be held indefinitely?

As established by this question, readied spells can only be held until the beginning of your next turn.

What would the balance implications be if there were no upper limit on how long the spell’s energy could be held? Or if the upper limit were higher?

Would Epic Heroism be an acceptable rule variant for a small, first-time group?

I’m DMing a group with 4 players. For all of us, this is our first D&D experience. We’ll be playing Lost Mines of Phandelver.

I’m concerned about the survivability, especially given how green the players are. At first level, they’ll have 10 or 12 hit points, facing groups of goblins that can hit for 1d6+2. I’m adjusting the number of monsters in each encounter, but still worry.

Healing seems to be very rare. At first level, the spellcasters will have the ability to cast two spells in an entire dungeon.

Epic Heroism (DM Guide p267) seems like it could help, but might tip the balance too far the other way into easy mode:

This variant uses a short rest of 5 minutes and a long rest of 1 hour. This change makes combat more routine, since characters can easily recover from every battle. You might want to make combat encounters more difficult to compensate.

Spellcasters using this system can afford to burn through spell slots quickly, especially at higher levels. Consider allowing spellcasters to restore expended spell slots equal to only half their maximum spell slots (rounded down) at the end of a long rest, and to limit spell slots restored to 5th level or lower. Only a full 8-hour rest will allow a spellcaster to restore all spell slots and to regain spell slots of 6th level or higher.

Am I missing some element that would make the party more likely to survive the first dungeon, or would this rule variant be a good way to introduce the mechanics of the game?

Is the Rule 110 Cellular Automaton a Register Machine or a Tape-based Turing Machine?

When we look at models of computation – we come down into two broad categories:

  • Tape-based machines
  • Register based machines

We also see that any computer program can be run on the Rule-100 Automaton. (ie it is Turing Complete).

My question is: Is the Rule 110 Cellular Automaton a Register Machine or a Tape-based Turing Machine?

Possible Outlook rule?

Is it possible to set up an outlook rule which will send a pre written message to another address when an email is received with an attachment over 20mb?

I have been racking my brain and the rules wizard with no luck, I can only get the rule to send the message back to the original sender address?

Apologies if this is in the wrong place,