Author Topic: Need help loading mod_rewrite (static) module  (Read 5886 times)

0 Members and 1 Guest are viewing this topic.

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


Offline
*****
Re: Need help loading mod_rewrite (static) module
« Reply #1 on: December 08, 2015, 09:34:08 AM »
Hello.

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

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