Php HTTPS主机出现Wordpress Permalinks 404错误
即使在添加AllowOverride和Rewrite modules参数后,我的新permalinks仍然会在我的站点上显示404错误。这是我的默认-ssl.conf文件:Php HTTPS主机出现Wordpress Permalinks 404错误,php,wordpress,https,url-rewriting,permalinks,Php,Wordpress,Https,Url Rewriting,Permalinks,即使在添加AllowOverride和Rewrite modules参数后,我的新permalinks仍然会在我的站点上显示404错误。这是我的默认-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
<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.....
<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>
文森特。zzz@gmail.com
DocumentRoot/var/www/zzz
服务器名zzz.com.vn
ServerAlias www.zzz.com.vn
选项索引跟随符号链接多视图
不允许超限
命令允许,拒绝
通融
重新启动发动机
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#卡斯顿的东西结束了。。。。。
下面是我的apache2.conf文件的正常http部分:
<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.....
<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>
服务器名zzz.com.vn
DocumentRoot/var/www/zzz
选项如下符号链接
允许超越所有
命令允许,拒绝
通融
DirectoryIndex.php
#强制SSL
重写条件%{HTTPS}关闭
重写规则(.*)https://%{HTTP_HOST}%{REQUEST_URI}[R=permanent]
有人有主意吗?您确定已启用mod_rewrite吗?是否有在
/etc/apache2/mods中启用的rewrite.load的符号链接?
您可以通过以下方式启用mod:
sudo a2enmod rewrite
您确定已启用mod_rewrite吗?是否有在/etc/apache2/mods中启用的rewrite.load的符号链接?
您可以通过以下方式启用mod:
sudo a2enmod rewrite