Php htaccess在之后发送内容?作为参数

Php htaccess在之后发送内容?作为参数,php,regex,.htaccess,url-rewriting,Php,Regex,.htaccess,Url Rewriting,这是我的输入URL 我希望它能像 我们怎样才能做到这一点?我只希望这个URL以开头 所以它不会影响任何其他URL 这就是我尝试过的 RewriteRule ^project/edit/([A-Za-z0-9._-]+)/([A-Za-z0-9._-]+)/([A-Za-z0-9._-]+)/?$ modules-nct/edit_project-nct/index.php?slug=$1&action=method&method=$2&file=$3 [L] Rewri

这是我的输入URL

我希望它能像

我们怎样才能做到这一点?我只希望这个URL以开头 所以它不会影响任何其他URL

这就是我尝试过的

RewriteRule ^project/edit/([A-Za-z0-9._-]+)/([A-Za-z0-9._-]+)/([A-Za-z0-9._-]+)/?$ modules-nct/edit_project-nct/index.php?slug=$1&action=method&method=$2&file=$3 [L]
RewriteRule ^project/edit/([A-Za-z0-9._-]+)/([A-Za-z0-9._-]+)/?$ modules-nct/edit_project-nct/index.php?slug=$1&action=method&method=$2 [L]
RewriteRule ^project/edit/([A-Za-z0-9._-]+)/?$ modules-nct/edit_project-nct/index.php?slug=$1 [L]
请不要因为我的编辑不当就给它负面评价。我来这里是为了学习新东西

谢谢。

在您的标签中:


在上一行中,href URL将被重定向到原始URL。

重点不是我应该如何调用URL,而是如何处理它。。。不过谢谢你,伙计。。
<a href="your_url/your_other_parameters(means :project/edit/sgdsg/getFile/ )/directly enter your file name that you want to pass"> i.e your <a> tag must be

<a href="http://site_name/project/edit/sgdsg/getFile/271bbec45d7855a332e6dfda85ca94b9.txt"></a>
RewriteRule ^project/edit/([A-Za-z0-9._-]+)/([A-Za-z0-9._-]+)/([A-Za-z0-9._-]+)$ modules-nct/edit_project-nct/index.php?slug=$1&action=method&method=$2&file=$3