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?