Question

Mod_rewrite on centos 6.5 with directadmin

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 https://www.digitalocean.com/community/articles/how-to-set-up-mod_rewrite) 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!


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I don’t know—I never used directadmin. I figured there would be an option/checkbox that you would check to enable mod_rewrite. <br> <br>Try logging into your droplet as root and running <pre>sudo a2enmod rewrite <br>sudo service httpd restart</pre>

Hi, <br> <br>Thanks for your reply. <br>This is probably a very newbish question… but then, i am.:) <br> <br>How to enable mod_rewrite through directadmin? <br> <br>Thanks in advace (as always)

Try enabling the mod_rewrite module through directadmin. If that doesn’t fix it, can you paste your virtualhost config?