Permalinks on Wordpress EC2

前端 未结 8 526
攒了一身酷
攒了一身酷 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:25

    I had to use the AllowOverride All and Options +FollowSymLinks in more than one .conf file (and I also tried a2enmod rewrite while I was at it). But it was the last .conf file that was apparently controlling that directory (the .iso we used resulted in several with the same directory ... and the first one I changed had no effect). But once they ALL had both those settings the system began working.

    0 讨论(0)
  • 2021-01-31 11:28

    Basic: Connecting to Your Linux Instance from Windows Using PuTTY

    Step 1: Open PuTTY to login in AWS EC2 console

    Step 2: Enter Server Address

    Step 3: Browse Auth Private Key in PuTTY

    Step 4: Login to AWS through PuTTY (Enter “Login as name” i.e. your AWS ec2 instance name. for above example: ec2-user)

    Step 5: Change directory to /etc/httpd/conf ($ cd /etc/httpd/conf)

    Step 6: execute sudo vi httpd.conf to update httpd.conf file. (Open httpd.conf file in VI editor)

    Update Following

    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    

    To

    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    

    And

    # 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 None
    

    To

    # 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
    

    Step 7: Save and Exit from VI editor.

    To save and exit from VI editor press [Esc] key and type :wq

    Step 8: Restart Apache

    Type sudo apachectl -k restart

    Final Screenshot

    0 讨论(0)
提交回复
热议问题