2017-03-23 15 views
1

私はapache2でCIの仮想ホストを設定するためにubuntuを使用するのを混乱させました。CodeIgniterで仮想ホストを管理する

私はバーチャルホストを使用してローカルで実行するためのウェブサイトを持っていますが、

mysite.com/about_us

それは開いている、と言ったことはできません。は404

これは私のバーチャルホストコード

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    ServerName blade.co.loc 
    ServerAlias www.blade.co.loc 

    DocumentRoot /var/www/html/new/ 

    <Directory /var/www/html/new/> 
     Options Indexes FollowSymLinks MultiViews 
     AllowOverride All 
     Order allow,deny 
     allow from all 
    </Directory> 
</VirtualHost> 

であり、これはですが見つかりません私の.htaccessコード

<IfModule mod_rewrite.c> 
Options +FollowSymLinks -MultiViews -Indexes 
RewriteEngine On 
RewriteBase /new/ 

RewriteCond %{REQUEST_URI} ^system.* 
RewriteRule ^(.*)$ /index.php?/$1 [L] 

RewriteCond %{REQUEST_URI} ^application.* 
RewriteRule ^(.*)$ /index.php?/$1 [L] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 
</IfModule> 

答えて

関連する問題