.htaccess of WP directory and .htaccess in other directory

enter image description here

I’m running WordPress site dedicated to games on my hosting. In between of wp-* folders, there are several other folders (my folders) with microsite content. It looks like this:

In myFolder1 or MyFolder2 I want to use Rewrite Rules, to all PHP files in this directory, but WordPress also uses own .htaccess for all of the directories in root of hosting. I’m doing this, because I want to have pretty url.

In WordPress .htaccess is this:

BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

END WordPress

For example: www.something.com runs WordPress app and in myFolder1 I have another website with .htaccess. The full address is www.something.com/myFolder/index.php?page=someContent and I want to have www.something.com/myFolder/someContent.

Could you please help me what can I do and what kinds of rules can I set on myFolder1 or 2 etc.? Thank you in advance! 🙂

Read more here: .htaccess of WP directory and .htaccess in other directory

Leave a Reply

Your email address will not be published. Required fields are marked *