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]