2017-07-27 66 views
1

我試試這個教程,但沒有發生WordPress的永久鏈接不起作用Ubuntu服務器AWS

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

根據this文章,這可能發生在mod_rewrite模塊未在Apache配置文件中啓用。

+0

非常感謝您的先生。 – metalbox