Activating Friendly Url in Microsoft Localhost

If you like to try or build a dynamic website in localhost, it will be more comfortable if the ability of friendly urls that are now most active in online server for seo can be felt on the server offline. For users of Apache servers, both AppServ, XAMP or manually install the components one by one, to enable these capabilities friendly urls, just one condition, activate the rewrite module.

Then how do I activate the rewrite module?
First you must check whether the rewrite module files exist? look in the folder C:\\Apache2.2\modules\for AppServ. If the module is there, next open the file C:\\Apache2.2\conf\httpd.conf and replace

# LoadModule rewrite_module modules/mod_rewrite.so

with

Rewrite_module LoadModule modules/mod_rewrite.so

The next step is to restart apache to make sure all the modules were loaded. Double click C:\AppServ\Apache2.2\apache_serviceinstall.bat, and then create a php file containing

<?php phpinfo(); ?>

save it on local server and then call it with your favorite browser.
If successful the browser will display the PHP information and ensure that the rewrite module is active in the apache2handler like the picture below.

Category: Tips and Tricks
Tags: | |

Newer post:
Older post:

One Response to “Activating Friendly Url in Microsoft Localhost”

  1. Free NX says:

    There is some solid information on this blog. I enjoy your writing. I’ve added the feed to my Google Reader RSS subscriptions and will check back often. I did have a loading speed problem with how quick the website loaded. Might be something to optimize.