Skip to content

Instantly share code, notes, and snippets.

@kaoru-fukusato
Created March 15, 2020 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaoru-fukusato/a0d37a1b2e4b4a9dc4813851b73c5d45 to your computer and use it in GitHub Desktop.
Save kaoru-fukusato/a0d37a1b2e4b4a9dc4813851b73c5d45 to your computer and use it in GitHub Desktop.
301リダイレクト
AddHandler php7.1-script .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
php_value memory_limit 128M
php_value post_max_size 40M
php_value upload_max_filesize 30M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment