php - Question about Apache mod_rewrite
给我你的怀抱
给我你的怀抱 2017-07-04 13:45:37
0
1
973

Dear masters, how to use

in apache

Requests for http://www.test.com/aa/bb/cc are forwarded to

http://www.test.com/index.php...

Not a jump

Please give me some advice, through the .htaccess file

给我你的怀抱
给我你的怀抱

reply all(1)
ringa_lee
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f    
    RewriteRule ^(.+)/(.+)/(.+)$ index.php?var1=$1&var2=$2&var3=$3 [L]
</IfModule>

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!