LoginSignup
0
0

More than 1 year has passed since last update.

Gatsby.js+レンタルサーバーの構成でページリロードすると403が出る時の対処法

Last updated at Posted at 2022-02-14

gatsby build したページをレンタルサーバーにホストした時にページリロードで403エラーになってしまいハマったのでメモ。

手っ取り早く解決するには.htaccessで403をアプリで処理するようにすれば解決。

.htaccess
ErrorDocument 403 http://%{HTTP_HOST}%{REQUEST_URI}

自由度の少ないレンタルサーバーを利用しなければならない時、Gatsby.js等のSGGフレームワークは便利ですね。

0
0
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
0
0