some_path
Web サイトでルートをキャッチし、同じサーバーの別のポートにリダイレクトしようとしています。次のコードはサーバー上では機能しますが、私のローカルホスト ボックスでは機能しません。Ubuntuを使用しています
<IfModule mod_rewrite.c>
Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteBase /
# Works on the server
RewriteRule ^some_path/(.*)$ http://remoteserver.com:1337/$1 [P,L]
# Does not work on the localhost
RewriteRule ^some_local_path/(.*)$ http://localhost:1337/$1 [P,L]
</IfModule>