How to Enable mod_rewrite in Apache Server
Posted by Raj
how to create a website server,how to make a website server,enabling mod_rewrite,mod_rewrite module,mod_rewrite url,mod_rewrite examples,apache install mod_rewrite,httpd mod_rewrite,apache2 install mod_rewrite,apache enable mod rewrite
1. please make sure you make a backup copy of the original file in case you make a mistake.
2. Find the httpd.conf file
3. Inside the httpd.conf file find and uncomment the line LoadModule rewrite_module modules/mod_rewrite.
4. After you have made the changes and saved them, restart your httpd (apache) server for the changes to take affect.
6. Done.
Check if its working
Create a .htaccess file (a text file named .htaccess) with the following code in it
Options +FollowSymLinks
RewriteEngine On
Save the file to a subdirectory of your main site something like this
/project/.htaccess
browse to the subdirectory (http://localhost/project/).
- No errors Congrats mod_rewrite engine is now enabled.
- 500, Internal Server Error If you get this message then mod_rewrite was not installed/enabled on your computer.
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
how to create a website server,
how to set up a web server,
how to set web server,
http server windows,
httpd server,
mod_rewrite apache,
mod_rewrite enable,
PHP,
PHP interview questions and answers
.You can leave a response, or trackback from your own site.