$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Enable Apache 2 Mod_rewrite on Ubuntu 20.04

August 31, 2021 | By the+gnu+linux+evangelist.

Installing

  1. 2. Enabling Apache2 Rewrite

    Now to Enable Apache2 Rewrite Module
    Simply play:

    sudo su -c "a2enmod rewrite"

    How to Create an Apache 2 Virtual Host on Ubuntu.

    GNU/Linux Apache2 Virtual-Host Quick Start
  2. 3. Setting up Domain

    Again to Setup an Apache2 Virtual Host for Rewrite
    Edit the Configuration File:

    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
    </Directory>
    

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

    How to Install APC PHP Accellerator on Ubuntu

    Install PHP APC for Ubuntu
  3. 4. Restarting Apache

    Finally, Restart Apache2 Web Server
    Simply with:

    sudo service apache2 restart

Contents


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