Mod_rewrite on centos 6.5 with directadmin

Posted January 21, 2014 9.3k views
Well, i have managed to install directadmin on the droplet. Though there are two apache related problems: url rewrite doesn't work and caching also. I have searched everywhere (read this but i just can't get it to work! My .htacces is not the problem: with a dutch hosting provider i have a directadmin vps too and with same .htacces it works there. My droplet is running centos 6.5 x64 I'd be great if someone could point me in the right direction!

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
3 answers
Try enabling the mod_rewrite module through directadmin. If that doesn't fix it, can you paste your virtualhost config?

Thanks for your reply.
This is probably a very newbish question.. but then, i am.:)

How to enable mod_rewrite through directadmin?

Thanks in advace (as always)
I don't know—I never used directadmin. I figured there would be an option/checkbox that you would check to enable mod_rewrite.

Try logging into your droplet as root and running
sudo a2enmod rewrite

sudo service httpd restart