WordPress slugs and 404 handling takes preference over folders in site root?

I have wordpress installed and permalink structure set to /%postname%/

In addition to WordPress folders, I also have a public_html/beta folder where I wanted to copy the same site and test some unreleased features.

Read More

However, whenever I navigate to http://mysite.com/beta , I get the WordPress message saying “Sorry, but you’re looking for something that isn’t there”.

So the question is how do I make the folder take higher priority/preference than the wordpress slugs? :/

Thanks!

Edit: here’s the .htaccess file:

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

# END WordPress

Related posts

Leave a Reply

1 comment

  1. For beta testing use either a separate domain or at least a subdomain in another directory than your live site.

    If you absolutely have to use the current setup install a plugin that offers password protection like Members or change the .htaccess rules to:

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

    … and create a separate .htaccess for the beta site.