Enabling mod_rewrite on Ubuntu

If you are frequently writing PHP script using a framework, I am pretty sure that you want a beautiful URL. So… And for sure, you are using local server to test it. By default mod_rewrite is not enable on Apache server. To enable it, just write this on command line;

$ sudo a2enmod rewrite

After that, you have to restart Apache to make the configuration work

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s