[英]wordpress removing index.php
I'm not sure what the problem is I followed the steps to remove index.php 我不确定是什么问题,我按照步骤删除了index.php
Added to .htaccess 已添加到.htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Selected Custom Structure 选定的自定义结构
http://11.33.55.77/%pagename%/
http://11.33.55.77/%pagename%/
Any page I visit is a 404 for example 例如,我访问的任何页面都是404
http://url.com/faq = 404
http://url.com/faq = 404
The requested URL /faq was not found on this server. 在此服务器上找不到请求的URL / faq。
确保常见问题页面的永久链接实际上是/ faq,如果设置正确,请确保在您的apache中启用了mod_rewrite
instead go to apache2/sites-available/default-000.conf 而是转到apache2 / sites-available / default-000.conf
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
copy and paste the following configuration 复制并粘贴以下配置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.