开发者

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]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜