deploy drupal to AWS server but 404 not found
Thanks Gisle. I had this situation, and found that Apache ignored my .htaccess file. For others in the same situation it could be helpfull to know how I sorted it out. I needed to make a change to the /etc/apache2/apache2.conf file in the following section:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>Change to:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>Save file, and restart apache server:
sudo service apache2 restart By the way - if you search this topic you will find many that say you should edit the $url_path variable in settings.conf. However, this option has been deprecated since drupal 9.
留言
發佈留言