Question

mod_rewrite does not work on a Joomla droplet

Posted July 8, 2015 2.8k views
JoomlaSystem Tools

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

3 comments
  • 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
    </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

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

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.

×
Submit an Answer