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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.