RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^user/([0-9]+)/?$ index.php?a=user&id=$1 [QSA,L]
RewriteRule ^img/([0-9]+)/?$ index.php?a=img&id=$1 [QSA,L]
RewriteRule ^(.*)$ index.php?a=$1 [QSA,L]
Options -Indexes
htaccess规则打破了文件的路径。
有人有想法吗?
答案 0 :(得分:0)
这应该有效:
Select teamid, CONCAT(select team_member_name FROM team_members WHERE teams.teamid = team_members.teamid) as team_members FROM teams;