所以这是我的 .htaccess 到目前为止:
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName site.com
#Redirect 301 / http://www.google.com/
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^([^/\.]+)/?$ /index.php?page=$1 [L]
RewriteCond %{HTTP_HOST} ^site.com
RewriteRule (.*) http://www.site.com/$1 [R=301,L]
ErrorDocument 404 /404.html
我想做的是以下几点:
index.php?page=pagesite -> site.com/pagesite
但是如果我去 site.com/images 它不会去 /images 它去 index.php?page=images
我该如何解决?
另外,如果“pagesite”不在/includes/pages/中,它是否会重定向到404?
谢谢