Install apache with mod_rewrite configuration

This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, for instance server variables, environment variables, HTTP headers, time stamps and even external database lookups in various formats can be used to achieve a really granular URL matching.

Download  the  tarball  source   from  the  apache  website

Now extract the archive using the command:

tar -xvfz  httpd-2.3.8.tar.gz

Cd the extracted directory

cd  httpd-2.3.8

Now compile

./configure --prefix=${PWD} --enable-rewrite=shared
make install


After this check the folowing configuration in Httpd.conf . if it doesnt exit, please add it :
RewriteEngine On
RewriteCond %{QUERY_STRING} ^wsdl$
RewriteRule ^(.*)$ $1.wsdl [PT]

After this restart apache :

/etc/init.d/httpd  restart 

in debian or ubuntu

/etc/init.d/apache2  restart 



{module user9-footer}