4 回答

TA貢獻1831條經(jīng)驗 獲得超9個贊
mod_rewrite
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
sudo service apache2 restart
sudo systemctl restart apache2
.htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
.htaccess
DocumentRoot
index.php
DocumentRoot
DocumentRoot
httpdocs/ .htaccess index.php images/ hello.png js/ jquery.js css/ style.css includes/ app/ app.php
.htaccess
httpdocs/index.php
includes/app

TA貢獻1807條經(jīng)驗 獲得超9個贊
RewriteEngine On
.htaccess
AllowOverride all
<Directory>

TA貢獻1860條經(jīng)驗 獲得超8個贊
AllowOverride All
.
a2enmod rewrite

TA貢獻1783條經(jīng)驗 獲得超4個贊
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
AllowOverride None
AllowOverride All
- 4 回答
- 0 關(guān)注
- 1206 瀏覽
添加回答
舉報