apache_conf PHP扩展剥离器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf PHP扩展剥离器相关的知识,希望对你有一定的参考价值。

# ------------------------------------------------------
# strip .php files of file extension
# ------------------------------------------------------
# rewrite strictly for files ending in .php
# Instead of your sites files as this => domain-name.com/file.php
# Rewrite so users can do this instead => domain-name.com/file

<IfModule mod_rewrite.c>
   RewriteCond %{REQUEST_FILENAME}.php -f
   RewriteRule ^(.*)$ $1.php [L]
</IfModule>

以上是关于apache_conf PHP扩展剥离器的主要内容,如果未能解决你的问题,请参考以下文章