mod_rewrite does not work on a Joomla droplet

July 8, 2015 2.6k views
Joomla System Tools

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

  • 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

  • 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

    If i set it in apache2.conf to,

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

    i get a 500 internal server error.

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

    Best MCShare

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

1 Answer
Have another answer? Share your knowledge.