在apache下 跨目录 伪静态转换

如何把http://xxx.com/app/index.php?i=5&c=entry&m=ewei_shopv2&do=mobile&r=pc
伪静态成 http://xxx.com/aaa.html


Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^xxx.com
RewriteRule ^aaa.html app/index.php?i=5&c=entry&m=ewei_shopv2&do=mobile&r=pc [QSA,PT,L]

建立.htaccess文件上面

最主要规则下面两句
RewriteCond %{HTTP_HOST} ^xxx.com
RewriteRule ^aaa.html app/index.php?i=5&c=entry&m=ewei_shopv2&do=mobile&r=pc [QSA,PT,L]

 <IfModule mod_rewrite.c>
</IfModule>
 <IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On
    RewriteCond %{HTTP_HOST} ^xxx.com
RewriteRule ^aaa.html app/index.php?i=5&c=entry&m=ewei_shopv2&do=mobile&r=pc [QSA,PT,L]
</IfModule>