From 5b79fbca486092cfee3016d26cf80918833513bc Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Tue, 24 Feb 2015 15:50:12 +0000 Subject: [PATCH] Updated Add a Virtual Host (markdown) --- Add-a-Virtual-Host.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Add-a-Virtual-Host.md b/Add-a-Virtual-Host.md index fc4fa65..6037632 100644 --- a/Add-a-Virtual-Host.md +++ b/Add-a-Virtual-Host.md @@ -25,18 +25,16 @@ server { ## Apache Example: -``` - - ... standard virtual host ... +For Apache, you can use a standard virtual host, as long as your server supports PHP. All you need to do is add the following to a `.htaccess` file in your PHPCI `/public` directory. - - RewriteEngine On - RewriteBase / - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule . /index.php [L] - - +``` + + RewriteEngine On + RewriteBase / + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule . /index.php [L] + ``` ## Other Servers