我使用了一些由Roots framework. 偶尔它们会被抹掉:当然,如果我访问设置>永久链接,也会在看似随机的时间。
我的htaccess是这样读的:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteRule ^css/(.*) /wp-content/themes/the-hit-centre/css/$1 [QSA,L]
RewriteRule ^js/(.*) /wp-content/themes/the-hit-centre/js/$1 [QSA,L]
RewriteRule ^img/(.*) /wp-content/themes/the-hit-centre/images/$1 [QSA,L]
RewriteRule ^plugins/(.*) /wp-content/plugins/$1 [QSA,L]
RewriteRule ^media/(.*) /wp-content/uploads/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
我已尝试删除
# BEGIN WordPress
注释,但WP只编写了一个新的代码块。
Is there a hook I can call in functions.php that will prevent WP refreshing the permalinks?
谢谢Tim