How to enable mod_rewrite in apache

how to check which modules are loaded in apache

apachectl -t -D DUMP_MODULES

Ref :

http://adminuser.wordpress.com/2008/06/12/list-all-the-loaded-modules-apache/

how to enable mod_rewrite in apache2

cd /etc/apache2/mods-enabled
touch rewrite.load
gedit rewrite.load (you may use any editor to edit this file)

now paste this following line

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

/etc/init.d/apache2 restart
or
service apache2 restart

Touch command :

Change file access and modification time.

Ref :

http://www.lavluda.com/2007/07/15/how-to-enable-mod_rewrite-in-apache22-debian/

http://www.computerhope.com/unix/utouch.htm

Nice one šŸ™‚

http://tymonn.wordpress.com/2009/07/31/how-to-enable-mod_rewrite-in-apache2-debianubuntu/

 

 

 

Advertisements

About rahul23134654

Hi, I am Rahul Meha , B.E. in (I.T.)
This entry was posted in Apache. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s