search

Home  >  Q&A  >  body text

php - Question about Apache mod_rewrite

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

给我你的怀抱给我你的怀抱2701 days ago1005

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-07-04 13:47:37

    <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>
    

    reply
    0
  • Cancelreply