私はページを持っています:
http://domain.com/index.php
しかし奇妙なことに、以下urls
も機能し、同じページをレンダリングしています:
http://domain.com/index.php/abcd
http://domain.com/index.php/gefe
等々..
明らかに、それは台無しにされた構成のようregex
です。しかし奇妙なことに、ファイルを削除しても URL は機能し続け.htaccess
ます。
今、私はこれを自分の構成のせいにすることしかできませんapache
が、すべてが期待どおりのようです。
私のApache設定:
<VirtualHost *:80>
# Server name
ServerName domain.com
# Document root
DocumentRoot /path/to/source
<Directory />
Options FollowSymLinks
</Directory>
<Directory /path/to/source>
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all
</Directory>
LogLevel error
# Logs
ErrorLog ${APACHE_LOG_DIR}/domain_error.log
CustomLog ${APACHE_LOG_DIR}/domain_access.log combined
RewriteMap lc int:tolower
</VirtualHost>
誰でも間違いを指摘できますか?