配置.htaccess重写文件可以达到你的要求,前提你的运行环境的是apache。
.htaccess参考
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
还需要配置一下你的thinkphp的URL模式,开发文档上有说明。