Permalinks on Wordpress EC2

前端 未结 8 527
攒了一身酷
攒了一身酷 2021-01-31 10:28

I have just transferred my blog from my local webserver to Amazon EC2 Free Linux server, Everything seems to be working now except for permalinks, I disabled and re-enabled them

8条回答
  •  执念已碎
    2021-01-31 11:22

    I just had this same issue and, assuming you are using httpd, you will need to go to /etc/httpd/conf then open http.conf by running sudo vi httpd.conf and then change "AllowOverride" to:

    
        Options FollowSymLinks
        AllowOverride All
    
    

    You may also need to change AllowOverride All here:

    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
        AllowOverride All
    

    Then you need to restart httpd by running apachectl -k restart. Note, you may need to actually run sudo apachectl -k restart.

    Let me know if that helps.

提交回复
热议问题