是可以直接在Apache httpd.confconfigurationWordPress永久链接?
我有一个服务器的情况(Apache 2.2.3 CentOS PHP5.1.6),我不能使用.htaccess的性能的原因,但可以使用httpd.conf。
pipe理员说,mod_rewrite已启用,但AllowOverride不是,我不能改变这些设置。
我需要限制永久链接到“博客”目录。
这是什么将进入.htaccess但需要进入httpd.conf:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule>
谢谢…
把它放在你的网站的容器内。
<Directory /path/to/blog/> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> </Directory>