To enable “mod_rewrite” module on apache server, you could use the command for CentOS:
a2enmod rewrite
Afterwards, please restart your webserver with the command:
service httpd restart
Be aware that you need a rewrite rule, which you might place in a .htaccess – file in your documentroot like for example:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
For CWP
/usr/local/apache/bin/httpd -M|grep rewrite
if you get output like “rewrite_module (static)” then you have it installed.
Otherwise add
<Directory "/home/ACCOUNT_USERNAME/public_html">
AllowOverride All
</Directory>
/usr/local/apache/conf.d/vhosts/MYDOMAIN.COM.conf