mod_rewrite - editing httpd.conf or adding to htaccess
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
-
So no one ever wondered how to do this... 0 -
mod_rewrite should be enabled by default in cPanel. Do you have root access to the server? If yes, run this command via SSH: httpd -l|grep rewrite The response should be: mod_rewrite.c 0 -
Thanks, I did that, it is enabled. Then I know I: - either need to define something for it to work - the web script thing is flawed 0 -
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. 0
Please sign in to leave a comment.
Comments
4 comments