我有这个链接
http://xxxx.com/yyyy/index.php?class=Applications&function=create
我想让它看起来像这样
http://xxxx.com/yyyy/create
我知道我必须使用
重写引擎开启
重写规则 ....
但由于我是新手,我不知道如何格式化它..
DirectoryIndex index.php order deny,allow Options +FollowSymLinks -MultiViews
RewriteEngine On RewriteBase /
RewriteRule ^(XXXXXXXX)/(aaaa)/?$ $1/index.php?class=Applications&function=$2 [L,NC,QSA]
RewriteRule ^(XXXXXXXX)/(bbbb)/?$ $1/index.php?class=Applications&function=$2 [L,NC,QSA]
RewriteRule ^(XXXXXXXX)/(cccc)/?$ $1/index.php?class=Applications&function=$2 [L,NC,QSA]
RewriteRule ^(XXXXXXXX)/(dddd)/?$ $1/index.php?class= test&function=$2 [L,NC,QSA]
RewriteRule ^(yyyy)/index\.php$ $1 [L,NC] #this one is not working...