I need some .htaccess code that will treat extensionless files as PHP files.
Suppose the visitors visits www.mywebsite.com/dir1/dir2/file.name
, it will first look the file dir1/dir2/file.name
exists and if it not exists, it will look for dir1/dir2/file.name.php
(so with .php
extension).
Is that possible in some way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…