.htaccess 为什么这不起作用?重写URL

.htaccess 为什么这不起作用?重写URL,.htaccess,url-rewriting,.htaccess,Url Rewriting,我想重写此URL:/PIT/employee/student profile/2 这项工作: RewriteRule^employee/([0-9]+)employee/student profile.php?id=$1 这不起作用: RewriteRule^employee/student profile/([0-9]+)employee/student profile.php?id=$1 我希望它是这样的:/PIT/employee/student profile/2请不要还原有助于其他

我想重写此URL:
/PIT/employee/student profile/2

这项工作:

RewriteRule^employee/([0-9]+)employee/student profile.php?id=$1
这不起作用:

RewriteRule^employee/student profile/([0-9]+)employee/student profile.php?id=$1

我希望它是这样的:
/PIT/employee/student profile/2

请不要还原有助于其他人更容易看到您的问题的建设性编辑。请澄清您的具体问题或添加其他详细信息,以突出显示您需要的内容。正如目前所写的,很难准确地说出你在问什么。请参阅页面以获取澄清此问题的帮助。您的.htaccess位于何处以及
学生档案.php
位于何处?my.htaccess位于PIT文件夹中,student-profile.php位于员工文件夹中,员工文件夹也位于PIT中,PIT文件夹是我的根文件夹或我的项目文件夹。对不起,我迟了答复。