WordPress 301 Redirect Spaces to Hypens <p>I have the following in my .htaccess file:</p> <pre><code> # BEGIN WordPress &lt;IfModule mod_rewrite.c&gt; Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase /entertainment/ RewriteCond %{THE_REQUEST} (\s|%20) RewriteRule ^([^\s%20]+)(?:\s|%20)+([^\s%20]+)((?:\s|%20)+.*)$ $1-$2$3 [N,DPI] RewriteRule ^([^\s%20]+)(?:\s|%20)+(.*)$ /$1-$2 [L,R=301,DPI] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /entertainment/index.php [L] &lt;/IfModule&gt; # END WordPress </code></pre> <p>The problem is that domain.com/entertainment/testing 1/ redirects to domain.com/testing-1 instead of domain.com/entertainment/testing-1/. How do I fix this?</p>