最近、新しいPCにAppServがインストールされました。
の.htaccess
RewriteEngine On
RewriteRule ^step/token/([a-zA-Z0-9_-]+)/?$ step.php?load=page&page=reset-token&token=$1 [L,QSA]
:
はいつものように、私が以前に設定した状況を、.htaccessファイル
これをPHPでスクリプトをされて開発を開始しました
step.php
print_r($_GET)
テスト#1
私はURLをロードする場合
http://localhost/mod-rewrite/step.php?load=page&page=reset-token&token=123
この出力されます:
Array ([load] => page [page] => reset-token [token] => 123)
テスト#2
私は希望の形式でURLを読み込む場合
http://localhost/mod-rewite/step/token/123/
問題が
\ APPSERV \ Apache2.2 \ confに\ httpd.confをLoadModuleのrewrite_moduleモジュール/ mod_rewrite.soは#
で起動せず、AllowOverrideのがすべてです:Cで
<directory />
Options FollowSymLinks
AllowOverride All
order deny,allow
Deny from all
</directory>
何が起こっている可能性がありますか?
へ
おかげで、実際にあなたの '段階からテスト#2から出力されたサービスを再起動します.php'ファイル? – Phil
はい、手順。phpはそのディレクトリ内の唯一のPHPファイルです – armate1hernan
他のリダイレクトはありますか?また、[MultiViews'を無効にする]必要があります(http://stackoverflow.com/questions/25423141/what-exactly-does-the-multiviews-options-in-htaccess) – Phil