Ich habe verwechselt Ubuntu für die Einrichtung virtueller Host für CI in Apache2.Virtuellen Host in CodeIgniter verwalten
Ich habe Website für lokal mit virtuellen Host ausgeführt, aber wenn ich meine Navigationslink wie öffnen.
mysite.com/about_us
Es kann nicht geöffnet sein, und sagte: Nicht Gefunden 404
Dies ist mein virtueller Host Code
<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>
Und das ist Mein .htaccess Code
<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>