Mod_Rewrite; how to enable?

operator

Verified User
Joined
Oct 24, 2008
Messages
7
Hi all,

My setup is as follows:

- CentOS 5.2 64-bit server
- DirectAdmin 1.32.3 running
- CustomBuild installed (with apache 2.2.10)

I want to enable mod_rewrite but can't find it anywhere to be configured. Can I enable/install this using CustomBuild, or do I need to compile apache myself?

Thanks,

Operator
 
I wouldnt see why it is not enabled by default.
 
it may already be enabled as scsi says. i'm not sure how experienced you are with modrewrite if you are experienced with it please ignore the following. i'm not an expert on modrewrite but you can try this:

change in your httpd.conf :

allowoverride None

to

allowoverride All

make a .htaccess file in the directory you want to use modrewrite and put the following into it:

Options +FollowSymLinks
RewriteEngine On

if you don't get a 500 error it is probably allready enabled.
 
Found a work around, but it doesn't work with CustomBuild.

Also, if you're using the suPHP engine, you don't see it in phpinfo, but now it's there, if I run httpd -l it shows me the mod_rewrite is loaded.
 
Found a work around, but it doesn't work with CustomBuild.

Also, if you're using the suPHP engine, you don't see it in phpinfo, but now it's there, if I run httpd -l it shows me the mod_rewrite is loaded.

not sure why, i just have standard apache 2.2 built with custombuild and i have modrewrite enabled.
 
Back
Top