Jump to content

Why mod_rewrite doesn't work on Apache 2.2.6


rushenas

Recommended Posts

Hi all

Can somebody tell me, what is the differences between Apache 1.3 family vs. 2.0 family? I need Apache uses mod_rewrite, basic authentication via browser, also supports PHP 5+. I run the following command for both version 2.2.6 and 1.3.39, but mod_rewrite only actives in 1.3.39. Why I can't enable it for 2.2.6?

 

./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-module=proxy --enable-shared=rewrite

 

What must I do for using mod_rewrite in 2.2.6, too?

Don't you just uncomment the mod_rewrite module within the httpd.conf?

 

Find:

#LoadModule rewrite_module modules/mod_rewrite.so

 

Remove the # from the start of the line. Save the httpd.conf and restart Apache.

 

Mod_rewrite should now be available.

 

If you use mod_rewrite within .htaccess files make sure you have set the AllowOverride directive to All within the main <Directory></Directory> directive.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.