Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在这一点上,我有这个结构。/quote-submit-php/我想做的是将最后一个“-”重命名为“。” 所以这quote-submit.php 基本上是一个单一的角色。谢谢
/quote-submit-php/
quote-submit.php
通过启用 mod_rewrite 和 .htaccess httpd.conf,然后将此代码放在您.htaccess的DOCUMENT_ROOT目录下:
httpd.conf
.htaccess
DOCUMENT_ROOT
Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^(.*)-(php)$ $1.$2 [L]