Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - thetechgenius

Pages: [1]
1
Apache / Need help loading mod_rewrite (static) module
« on: December 05, 2015, 09:51:57 PM »
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:
Code: [Select]
/usr/local/apache/bin/httpd -M|grep rewrite_module

All it says is "rewrite_module (static)" .

This is my .htaccess:
Code: [Select]

<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?


Pages: [1]