954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Url rewriting basic?

Hi frnds...

i am trying to know something about Url Rewriting..here i need to load mod_rewrite module...where can i get this..

In this i saw a point as

Open the httpd.conf file and uncomment the following lines (remove the trailing #s):

#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c


...


But in my http.conf file there is no code related to this .

Plz say some thing abt this what u know...which is the best guide to refer...

Thanks...

ahmksssv
Junior Poster in Training
84 posts since Feb 2009
Reputation Points: 11
Solved Threads: 7
 

Ahmksssv,

Unless you have an unusual (or very old) Apache distribution/compilation then mod_rewrite should be included.

In httpd.conf, try adding the indicated LoadModule directive (if it is not already there), otherwise simply uncomment it as you have already read (ie. remove the leading #).

LoadModule rewrite_module modules/mod_rewrite.so

Add it at the point in the file where the other LoadModules are. The order of LoadModule instructions is not important (you will notice that they are generally listed in alphabetical order).

I can't immediately see why AddModule should be required. I run with rewrite_module and there are no AddModule directives in httpd.conf (just LoadModule).

Airshow

Airshow
WiFi Lounge Lizard
Moderator
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You