LoginSignup
1
1

More than 5 years have passed since last update.

eccube3系 FTPでさくらの共有サーバにインストールする際の注意書き

Posted at

eccube3系をFTPでインストールする際に、デフォルトのhtaccessでは、500番エラーが表示される。

どうやら、さくらサーバでの.htaccessのmod_rewriteの書き方が特殊らしい。

/html/ないの.htaccess は、デフォルトで

order deny,allow
allow from all
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !^(.*)\.(gif|png|jpg|css|ico|js)$ [NC]
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

RewriteBaseの記述が必要になる。

order deny,allow
allow from all
<IfModule mod_rewrite.c>
    RewriteEngine On
  RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !^(.*)\.(gif|png|jpg|css|ico|js)$ [NC]
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

と記述することで、500番エラーは表示されなくなる。

ECCUBE3系 さくらサーバの共有サーバの場合に発生。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1