Need help loading mod_rewrite (static) module

Started by thetechgenius, December 05, 2015, 09:51:57 PM

Previous topic - Next topic

thetechgenius

I need help loading the Apache mod_rewrite module.

Where is the mod_rewrite module located? If I knew where it was located, I could add a "LoadModule" line in the httpd.conf.

When I run this Command in SSH:

/usr/local/apache/bin/httpd -M|grep rewrite_module


All it says is "rewrite_module (static)" .

This is my .htaccess:


<IfModule mod_rewrite.c>
RewriteEngine On

# Announcements
RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC]
RewriteRule ^announcements$ ./announcements.php [L,NC]

# Downloads
RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^downloads$ ./downloads.php [L,NC]

# Knowledgebase
RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC]
RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC]

</IfModule>



But the friendly URL's still don't seem to work.

The friendly URL's work fine on my cPanel/WHM dedicated server.



My question is, how do I load rewrite_module (static) in the httpd.conf or/and .htaccess?


Igor S.

Hello.

Check you rewrite rules, mod rewrite works great by default.

Quote from: thetechgenius on December 05, 2015, 09:51:57 PM
My question is, how do I load rewrite_module (static) in the httpd.conf or/and .htaccess?




You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services