この問題は、知恵袋にも投稿しています。
こちらを参照
こんにちは。この間は、申し訳ありませんでした。openpneをインストールし、snsにログインしようとしてみると、404エラーが表示されます。
#症状
ローカル環境で、バージョン3.9.4のopenpneでsnsにログインしようとすると、
「http://xxx.xxx.x.x/xxx/web/index.php」
上がアクセスしたURLで、下にリダイレクトされる。
「http://xxx.xxx.x.x/xxx/web//member/login/authMode/MailAdd...」
のURLで、
404 Not Found
と表示されます。
有力な改善方法がネットで調べても出てきません。
#やってみたこと
・.htaccessの修正
上記をやってもダメだった...
##修正前
Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} ..+$ #RewriteCond %{REQUEST_URI} !.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>
##修正後
#Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work RewriteBase /xxx/ # we skip all files with .something #RewriteCond %{REQUEST_URI} ..+$ #RewriteCond %{REQUEST_URI} !.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>
#補足
僕的には、ディレクトリ設定に問題があると思うのですが、何が原因だと思われますか?また、configファイルはどこにありますか?
追記:1人では足りないと感じ、新規に回答依頼をしました。
あなたの回答
tips
プレビュー