.htaccess

2013-09-11 11:20:15 0  category: apache
# Protect files and directories from prying eyes.
<FilesMatch "(\.(inc|cfg.php|pre.php|inc.php|tpl.php|class.php|info|po|sh|sql)|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Set the default handler.
DirectoryIndex index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?php=$1 [L,QSA]
</IfModule>


推荐文章

推荐文章