Report this

What is the reason for this report?

How to activate mod_rewrite in cpanel

Posted on April 26, 2021

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



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!

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.

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.