Wordpress - Permalinks and folders (.htaccess ?)
I have a Wordpress website with permalinks with post name. Now I have a new template on a specific page that uses files from exactly the same url path, and I can't change that. How can I make Wordpress access m开发者_如何学运维y requested page (example.com/meniu/) and ignore the folder name with same name? (example.com/menu/swf/)
Thank you!
This is my .htaccess. How can I add exclusions?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /club/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /club/index.php [L]
</IfModule>
You could prepend another rule to exclude only that directory:
RewriteCond %{REQUEST_URI} ^/menu
RewriteRule . /club/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /club/index.php [L]
精彩评论