Wordpress永久链接不适用于Ubuntu Server AWS

时间:2017-07-27 22:21:08

标签: wordpress amazon-web-services ubuntu amazon-ec2

我尝试本教程但没有任何反应

http://guiem.info/permalinks-on-wordpress-amazon-ec2/

apache2.conf目录代码

    <Directory />
    Options FollowSymLinks
    AllowOverride All
        Require all granted
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    Options Indexes FollowSymLinks
    #None
        AllowOverride All 
    Require all granted
</Directory>


<Directory "/var/www/html">

    Options Indexes FollowSymLinks


    AllowOverride All


    Require all granted
</Directory>

<Directory "/var/www/html/wordpress">

    Options Indexes FollowSymLinks

    AllowOverride All

    Require all granted
</Directory>


#<Directory /srv/>
#   Options Indexes FollowSymLinks
#   AllowOverride None
#   Require all granted
#</Directory>

当然,每次进行更改时我都会重启apache

如果我不使用永久链接wordpress工作完美

1 个答案:

答案 0 :(得分:1)

根据this文章,当Apache配置文件中未启用 mod_rewrite 模块时,可能会发生这种情况。