私は私のルートディレクトリにindex.phpファイルを持っていないが、私はindex.phpを私はルートに私のパブリックフォルダを指すように.htacessファイルを書き込みしているライブサーバー上で私のパブリックフォルダに
を提出していますディレクトリ
あなたは私が私がR & Dで行わbucauseこのエラーを解決する方法を知っているとあなたがルートディレクトリに
をindex.phpのを持っていないので、私が持っていたときに、いくつかはそれと言っているいくつかの解決策があることができますしてくださいルートディレクターのマイ.htacessコード
# BEGIN SSL
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/$1
## EXPIRES CACHING ##
<IfModule mod_expires.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]
ExpiresActive On
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/jpeg "access 1 month"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
こんにちは申し訳ありませんが、、画像が –
#は するRewriteCondの%{REQUEST_URI}!^ /公共/ するRewriteCondの%{REQUEST_FILENAME}でSSL RewriteEngineをBEGINロードされません! するRewriteCondの%{REQUEST_FILENAME} -f^ のRewriteRuleを-dもちろん$ /public/index.php –
、あなたがそのようなリソースを除外する必要があります前にいるので!(*):! 'するRewriteCond%{REQUEST_URI} を\(。 ?:css | js | jpe?g | gif | png)$ [NC] RewriteRule ^(。*)$ /public/index.php [L] ' – Valvadis