如何从URL中删除vendor.php?

时间:2015-09-24 09:52:55

标签: php

我的当前网址是(localhost / dumps / vendor.php / microsoft-question-answers)如何从网址中删除vendor.php?

1 个答案:

答案 0 :(得分:0)

Options +FollowSymlinks
RewriteEngine on
rewriterule ^dumps/vendor.php/microsoft-question-answers(.*)$ http://localhost/dumps/microsoft-question-answers$1 [r=301,nc]