How to Enable Apache 2 mod_rewrite on Lubuntu 14.04 Trusty LTS Linux Easy Guide

July 6, 2014 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Lubuntu 14.04 Trusty Apache Rewrite Setup

You are Welcome! The Tutorial Shows You Step-by-Step How to Enable the Apache2 Rewrite Module on Lubuntu 14.04 Trusty Tahr LTS Linux Desktop.

The mod_rewrite Module uses a Rule-based Rewriting Engine, based on a PCRE Regular-Expression Parser, to Rewrite requested URLs On the Fly. By default, mod_rewrite maps a URL to a Filesystem Path. However, it can also be used to Redirect One URL to Another URL, or to invoke an Internal Proxy Fetch.

Apache mod_rewrite provides a flexible and Powerful way to manipulate URLs using an Unlimited Number of Rules. Each Rule can have an Unlimited Number of Attached Rule Conditions, to allow you to Rewrite URL based on Server Variables, Environment Variables, HTTP Headers, or Time Stamps.

Enable Apache 2 mod_rewrite on Lubuntu 14.04 Trusty LTS - Featured

  1. Open a Command Line Terminal Window
    (Press “Enter” to Execute Commands).


    Enable Apache 2 mod_rewrite on Lubuntu 14.04 Trusty LTS - Open Terminal
  2. How to Install LAMP Server on Lubuntu Linux

    LAMP Server Installation Lubuntu
  3. Enabling Apache2 Rewrite Module

    sudo su -c "a2enmod rewrite"
  4. How to Create an Apache 2 Virtual Host on Lubuntu

    Lubuntu Apache2 Virtual-Host Quick Start
  5. To Setup an Apache2 Virtual Host for Rewrite

    sudo su -c "nano /etc/apache2/sites-available/[myDomainName].conf"

    Append inside the VirtualHost Section:

    <Directory /var/www/html/[mySite]>
        Options Indexes FollowSymLinks
        AllowOverride All

    Ctrl+Shift+v to Paste Content into nano
    Ctrl+x to Save and Exit from nano Editor :)

  6. How to Install APC PHP Accellerator on Lubuntu

    Install PHP APC for Lubuntu
  7. Restart Apache2 Web Server

    sudo service apache2 restart

Tags: , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress