Mobile app version of vmapp.org
Login or Join
Phylliss660

: Enable 'mod_rewrite' Using .htaccess File On cPanel Shared Hosting Server I'm using cPanel to host my website. I need to enable 'mod_rewrite' on this Shared Hosting cPanel account to run my script.

@Phylliss660

Posted in: #Apache #Htaccess #ModRewrite

I'm using cPanel to host my website. I need to enable 'mod_rewrite' on this Shared Hosting cPanel account to run my script. I've tried to Google the solutions high and low but did not find any luck yet.

Those tutorials that I found only work well with VPS and some of them said that, only hosting provider can change and enable it. But, some of them said that, it can be done easily by editing the .htaccess file.

My question:
If I want to edit the .htaccess file, what should I include in that file?
What the 'rules' and 'conditions' that should be included?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Phylliss660

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

cPanel is not inherently involved here, by the way.

Do you actually know if you're allowed to do this? Not all hosts allow such config changes via .htaccess. You should probably contact support to check.

If you already know it's possible, you can add:

RewriteEngine On


to your .htaccess file. Just put it near the top so it's before any rewrite rules.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme