Google Answers Logo
View Question
 
Q: Enabling mod_rewrite under Apache ( No Answer,   2 Comments )
Question  
Subject: Enabling mod_rewrite under Apache
Category: Computers > Operating Systems
Asked by: guybo-ga
List Price: $3.50
Posted: 31 Oct 2003 19:16 PST
Expires: 21 Nov 2003 14:48 PST
Question ID: 271598
Trying to use mod_rewrite on an Apache server with no luck.

Apparantly it is installed by default; I just need to turn it on and
define some rules. The problem is I can't find any mention of
mod_rewrite in the httpd.conf file.

I've tried adding the following line to the httpd.conf file:

    LoadModule rewrite_module modules/mod_rewrite.so

Restart Apache and all I get is page not founds until I remove that
line again.

I've noticed mod_rewrite.so does not exist in the modules directory.
Should it be there?

SUMMARY: How do I enable mod_rewrite under Apache and test if it is
working?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Enabling mod_rewrite under Apache
From: bookface-ga on 03 Nov 2003 07:38 PST
 
perhaps this will help:
http://www.sitepoint.com/article/910
Subject: Re: Enabling mod_rewrite under Apache
From: splacky-ga on 20 Nov 2003 17:26 PST
 
What OS are you using?

Yes, mod_rewrite.so should be in there.

The only way to test it is to create a rewrite rule in the conf file,
in the doc root:
<Directory "/var/www/html">
Options FollowSymLinks
Allow from all
RewriteEngine   on
RewriteBase    /
RewriteRule     ^old.html /new.html [R=permanent]

</Directory>

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy