Currently using
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
However moving a php script that uses this to a subfolder and having something else in the main directory.
What's the best way to allow the above to work in the subfolder only?
只需将文件与php文件一起移动到子文件夹中
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.