Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is htaccess not adding the "\" after the domain name and before the variable?
    text
    copied!<p>I am working in a .htaccess file that I've already done several redirects successfully in. The line I'm having a problem with is:</p> <pre><code>RedirectMatch 301 ^bookfox/(.*)/(.*)/(.*) http://www.thejohnfox.com/$3 </code></pre> <p>I'm trying to take this URL: <code>http://thejohnfox.com/bookfox/2006/10/joyce_carol_oat</code><br> and forward it to <code>http://thejohnfox.com/joyce_carol_oat</code></p> <p>I can only get the RedirectMatch to do this: <strong><code>http://thejohnfox.comjoyce_carol_oat</code></strong> I've tried everything I can find and nothing will work. </p> <p>Does anybody know why the forward slash is being taken out after <code>thejohnfox.com</code>?</p> <p>Here's the full code from my Wordpress .htaccess file:</p> <pre><code># BEGIN WordPress &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Redirect 301 /bookfox/bio.html http://thejohnfox.com/bio/ Redirect 301 /bookfox/journals-accepting-novellas.html http://thejohnfox.com/journals-accepting-novellas/ Redirect 301 /bookfox/ranking-of-literary-journ.html http://thejohnfox.com/ranking-of-literary-journals/ Redirect 301 /bookfox/what-is-bookfox.html http://thejohnfox.com/what-is-bookfox/ Redirect 301 /bookfox/journals-accepting-electronic-submissions.html http://thejohnfox.com/journals-accepting-electronic-submissions/ RedirectMatch 301 ^(.*)\.html$ http://thejohnfox.com$1/ RedirectMatch 301 ^bookfox/(.*)/(.*)/(.*) http://www.thejohnfox.com/$3 &lt;/IfModule&gt; # END WordPress </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload