By MCShare
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Hi there,
In case anyone comes across this in the future, here are the things that I would usually check:
mod_rewrite module enabled Apache using the apachectl -M and looking for “rewrite_module” in the list of loaded modules.sudo systemctl restart apache2.htaccess file in the Joomla directory is correct: https://docs.joomla.org/Preconfigured_htaccessAllowOverride directive in the Apache configuration is set to “All” for the Joomla root directory. This will allow the .htaccess file to be used:
<Directory "/home/user/public_html">
AllowOverride All
</Directory>
tail -100 /var/log/apache2/error.logBest,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.