2017-02-26 27 views

回答

0

在你的htaccess的頂部,把這個:

RewriteEngine on 
RewriteRule ^IU/((?!index\.php).+)$ /IU/index.php?q=$1 [NC,L] 

這將改寫/IU/anystring/IU/index.php?q=anystring

+0

這很接近,但我需要將「thisisastring」設置爲index.php的查詢參數。 –

+0

@JohnMacon:我更新了答案。 – starkeen

+0

這是完美的。謝謝! –