-1

私はGETを使用しindex.phpます:

$request=isset($_GET['m']) && $_GET['m']!='';
$requestFile=isset($_GET['files']) && $_GET['files']!='';

私のリンクは次の形式です:localhost:81/Template/index.php?m=index&files=Acc

.htaccessファイルまたはPHPを使用して次のように書き換えるにはどうすればよいlocalhost:81/Template/Acc/index.html or phpですか?

4

1 に答える 1

1
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^Template/([^/]+)/([^/.]+)\.html$ /index.php?m=$2&files=$1 [L]

次のサイトからページを取得するには:

localhost:81/Template/Acc/index.html
于 2013-01-20T21:10:57.537 に答える