mod_rewrite - editing httpd.conf or adding to htaccess

Richard Ainz

Member
Feb 15, 2015
6
0
1
cPanel Access Level
Root Administrator
When adding the lines

RewriteEngine On
Options FollowSymLinks

to a .htaccess placed in the root of a web script claiming to use it for permalinks, the interface tells me it does not find the mod_rewrite engine activated.

When trying to get to the httpd.conf to enable it that way, I do not seem to have access to that file on the webhost.

So the question would be; should mod_rewrite be enabled with those lines in .htaccess or do I need to contact the host to get this done deeper in the apache configuration I do not seem to be able to reach? (Which is strange since it is on a VPS).
System: Apache 2.4.18 with PHP 5.6.19 on CENTOS 6.4 x86_64
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

It seems like this is a flaw in the application you are using. You can try creating some simple Mod_Rewrite rules for a test page to verify it's working as expected in that directory.

Thank you.