次の書き換えルールを設定しました
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ core/index.php [L]
サイトのアーキテクチャは
newsite
﹂ .htaccess
﹂ core
﹂ index.php
WindowsでURL:http:// localhost / web / newsite / testを使用すると、/ web / newsite
/ core / index.php
にリダイレクトされ、機能
します。ただし、 Ubuntuで
URL http:// localhost /〜user1 / web / newsite / testを使用すると、/~user1/web/newsite/では
なく/home/user1/public_html/web/newsite/core/index.php
にリダイレクトされます。 core / index.php
では、どうすればこの問題を解決できますか?
ありがとう!