0
以下代码很有用。然而,它需要很多时间才能完成数百个php文件。所有php文件的RewriteCond%{REQUEST_URI}
RewriteEngine on
RewriteBase/
RewriteCond %{REQUEST_URI} !^/abc.php
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !^/home.php
RewriteCond %{REQUEST_URI} !^/settings.php
RewriteCond %{REQUEST_URI} !^/messages.php
...
...
...
RewriteRule ^/?([a-zA-Z0-9\-=&[email protected]/.]+)/?$ abc.php?u=$1 [QSA,L]
我必须逐行写入所有php文件。有没有简单的方法来做到这一切的所有PHP网页?
感谢您Croises :) – Mert