Hi i have a wordpress site and i want to create a custom folder in the root directory which will be independant from the wordpress. What rewrite rule i have to use in order to access that folder?
I have put

RewriteRule ^clients? /clients/index.php [L]

Current htaccess file

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

# END WordPress

When i access that folder i get an internal server error 500

Read more here: Create custom folder in wordpress installation


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: