Question

mod_rewrite does not work on a Joomla droplet

Hi, i’ve a issue with mod_rewrite on a Joomla droplet.

mod_rewrite is enabled on the droplet and on Joomla. The .htaccess is active in the Joomla root.

But mod_rewrite doesn’t work, i get a 404 error for all sites.

Is there anybody, who can give me a hint, what is the trigger?

Best MCShare

Subscribe
Share

in your Apache config, is AllowOverride set to None or All?

run this for CentOS/Fedora:

fgrep "AllowOverride" /etc/httpd/ -R |grep '#' -v

for Ubuntu/Debian:

fgrep "AllowOverride" /etc/apache2/ -R |grep '#' -v

In the files it outputs, check for the web directory (not CGI-BIN) and ensure AllowOverride is set to “ALL” rather than “NONE”

Once that’s done, reload apache2/httpd

EDIT Forgot to add “-R” to the commands to check sub-directories

I am having the same issue, just getting 404 not found messages.

Hi JonsJava,

thank you for your advice, it is set to “None”, in:

/etc/apache2/apache2.conf: AllowOverride None /etc/apache2/mods-available/alias.conf: AllowOverride None

apache2.conf includes the root

<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>

If i set it in apache2.conf to,

<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>

i get a 500 internal server error.

Have you an idea, who can i solve this issue?

Best MCShare


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted