EEConf 2024 is around the corner! EEConf 2024
I am not sure I understand the specific line we need in that .conf file and where to put it. Currently at the end, we have this:
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Is there an additional line of code to be added here?
Looks like to enable to module you actually just need to run sudo a2enmod rewrite
(sorry, it’s been a while since I’ve managed an Apache server).
I’d suggest that you review this article and start at “Section 1—How to Activate Mod_Rewrites” https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite#Section%201
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/=======/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.