How to activate mod_rewrite in cpanel

Im installing a script on a cpanel, but it needs me to activate mod_rewrite, how can I activate it?

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.

Hello, @Samasoul

Mod_Rewrite is compiled with Apache by default on cPanel. However, you can still double-check this with the command KFSyS provided already:

  1. httpd -M | grep rewrite

You can enable it for an account through the .htaccess file with:

  1. RewriteEngine On

Regards, Alex

Hi @Samasoul,

As far as I know, mod_Rewrite is installed as an Apache module by default.

httpd -M|grep rewrite
 rewrite_module (shared)

If you let me know the script you are trying to install I might be able to further assist you.

Regards, KFSys