【发布时间】:2011-04-23 04:20:12
【问题描述】:
我当前的http访问文件是
# Pound sign comments a line out
# Disallow viewing of htaccess files
<Files .htaccess>
order allow,deny
deny from all
</Files>
Options +FollowSymLinks
RewriteEngine On
# enable hiding php extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
现在它只是隐藏 .php,我仍然想隐藏 .php 但允许网站/用户/用户名
【问题讨论】:
标签: apache .htaccess mod-rewrite url-rewriting apache2