[英]Wordpress Permalinks 404 error with HTTPS host
My new permalinks continue displaying a 404 error on my site even after adding the AllowOverride and Rewrite modules parameters. 即使添加了AllowOverride和Rewrite modules参数,我的新固定链接仍继续在我的网站上显示404错误。 Here is my default-ssl.conf file : 这是我的default-ssl.conf文件:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin vincent.zzz@gmail.com
DocumentRoot /var/www/zzz
ServerName zzz.com.vn
ServerAlias www.zzz.com.vn
<Directory "/var/www/zzz">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Location />
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
</Location>
#end of custon stuff.....
And here is the normal http part of my apache2.conf file : 这是我的apache2.conf文件的常规http部分:
<VirtualHost *:80>
ServerName zzz.com.vn
DocumentRoot /var/www/zzz
<Directory "/var/www/zzz">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php
#force SSL
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=permanent]
</Directory>
Would anyone have an idea ? 有人有想法吗?
Are you sure that mod_rewrite is enabled? 您确定已启用mod_rewrite吗? Is there a symbolic link to rewrite.load in /etc/apache2/mods-enabled
? 在/etc/apache2/mods-enabled
是否存在符号链接来rewrite.load? You can enable the mod with: 您可以通过以下方式启用该mod:
sudo a2enmod rewrite
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.