mod_rewrite – Part 2: Instalasi modules in Apache


If you want to build ‘fantasy’ URL, You need helping from a apache’s module that we called mod_rewrite. This is realy famous modules in Apache. so, I think it always ready in common installation package.

Try to look from phpinfo(). Find installed modules in your package. This is example modules from my local server:

1 core mod_win32 mpm_winnt http_core mod_so mod_access
2 mod_actions mod_alias mod_asis mod_auth mod_autoindex
3 mod_cgi mod_dir mod_env mod_imap mod_include mod_isapi
4 mod_log_config mod_mime mod_negotiation <b>mod_rewrite</b>
5 mod_setenvif mod_userdir sapi_apache2

if you can’t see it. You can activate that module. Follow this step:

1. Open your http.conf (depend on your package, may be at Apache2\conf).
2. Find this line:

1 #LoadModule rewrite_module modules/mod_rewrite.so

uncomment that line:

1 LoadModule rewrite_module modules/mod_rewrite.so

3. Save 4. Restart your apache

As phpeveryday.com

Advertisements

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