我的网站有一个子目录:
http://www.mysite.com/test/
在“测试”目录中,我有:
index.php
included-inside-index-file.php
another-included-inside-index-file.php
script.php
现在,我怎样才能用 .htaccess 重写 url,使它像这样工作:
http://www.mysite.com/test --> access index.php
http://www.mysite.com/test/beautiful-url --> access script.php?parameter=beautiful-url
http://www.mysite.com/test/included-inside-index-file.php --> 404 error
http://www.mysite.com/test/another-included-inside-index-file.php --> 404 error