【Apache】mod_rewriteについて語るスレ (686レス)
【Apache】mod_rewriteについて語るスレ http://medaka.5ch.net/test/read.cgi/php/1023791370/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
64: alex [] 04/05/05 13:53 ID:ma1zwts1 共有サーバーでのhtaccessにおけるmod_rewriteの方法について教えてください。 文章が長いので二度に分けます。 現在、(仮の名称で) http://www.example.com (内部パスは/home/www/public_html/) というサイトと別のサーバーである http://www.example2.com (内部パスは/home/www2/public_html/) というサイトを経営しているとします。 http://www.example.com/php/とアクセスすると ------------------------------ RewriteEngine on RewriteBase / RewriteRule (.+)$ index.php?$1 ------------------------------ という.htaccessの設定がルートに置かれているので www.example.com/index.php?/php/ というユーザーから実際のURLは見えない内部アクセスとなり、 index.phpの内部では動的なフレーム転送を行っています。 ところが、 http://www.example.com/something/ (内部パスは/home/www/public_html/something/) というディレクトリにフレーム転送したくないコンテンツがあるので、 ------------------------------ RewriteRule /something(.+) something$1 [C] ------------------------------ http://medaka.5ch.net/test/read.cgi/php/1023791370/64
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 622 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
1.263s*