Re: スマートurlの件
-
inoue >
スマートurlの件 @ 2012/11/15 9:46
-
ryuring >
Re: スマートurlの件 @ 2012/12/7 1:45
-
goichi >
Re: スマートurlの件 @ 2012/12/8 17:41
-
arata >
Re: スマートurlの件 @ 2012/12/10 20:00
-
arata >
Re: スマートurlの件 @ 2012/12/7 18:33
-
inoue >
Re: スマートurlの件 @ 2012/12/11 18:20
-
ryuring >
Re: スマートurlの件 @ 2012/12/18 13:01
-
masa77 >
Re: スマートurlの件 @ 2012/12/19 19:57
-
ryuring >
Re: スマートurlの件 @ 2012/12/19 22:00
-
»
masa77 >
Re: スマートurlの件 @ 2012/12/20 8:58
-
inoue >
Re: スマートurlの件 @ 2012/12/20 10:44
-
ryuring >
Re: スマートurlの件 @ 2012/12/20 10:58
-
ryuring >
Re: スマートurlの件 @ 2012/12/20 11:00
-
masa77 >
Re: スマートurlの件 @ 2012/12/20 17:39
-
clothoweb >
Re: スマートurlの件 @ 2012/12/21 17:39
-
masa77 >
Re: スマートurlの件 @ 2012/12/22 11:08
-
yuse >
Re: スマートurlの件 @ 2012/12/25 23:00
-
masa77 >
Re: スマートurlの件 @ 2012/12/26 0:31
masa77 > Re: スマートurlの件 @ 2012/12/20 8:58 |
---|
ryuring さん
ありがとうございます。 スマートURLのオン・オフは うまく動いています。 ただ、inoueさんが最初に書かれているようにスマートURLのオンにすると(オフは問題ありません) サイトマップページからホーム・トップのページのみ動作しません。 直接ブラウザーのアドレス欄から http://○○.com/ は OKですが、 ( http://○○.com/corp http://○○.com/products 等もOKです) また、http://○○.com/index.html http://○○.com/index.htm では http://○○.com/ このページが表示されOKです。 ただ、 http://○○.com/index や http://○○.com/index.php では、 404 NOT FOUND エラー : リクエストされたアドレス '/redirect:/app/webroot/index.php' はこのサーバにありませんでした。 404 NOT FOUND エラー : リクエストされたアドレス '/index.php' はこのサーバにありませんでした。 となります。(ちなみに。スマートフォンページは動作しています) また、サブフォルダには設置していないのですよ。 手動設定については、基本的に オン で動いています。 スマートURLを設定するhtaccess と見比べると 問題ないように思いますが。。。 下記のように、ロリポップ、クロスサーバー での htaccess を書きます。 両サーバーとも同じように設置すると、ロリポップでは上記のようなエラーが出ます。 クロスサーバーでは、動作しています。 /.htaccess については ロリポップ RewriteEngine on RewriteBase / RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] クロスサーバー AddHandler application/x-httpd-phpcgi .php mod_gzip_on Off # RewriteEngine on RewriteBase / RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] /app/webroot/.htaccess については ロリポップ RewriteEngine on RewriteBase /app/webroot RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] クロスサーバー RewriteEngine on RewriteBase /app/webroot RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] /app/config/install.php については ロリポップ Configure::write('App.baseUrl', ''); クロスサーバー Configure::write('App.baseUrl', ''); 以上、、少し長くなって申し訳ありません。 スマートURLをオフにすれば問題ないのですが。。。。 |