Skip to content

Instantly share code, notes, and snippets.

@curegit
Created June 20, 2019 12:21
Show Gist options
  • Save curegit/183ef7fc3f38d0c6f84160d4b9083ee8 to your computer and use it in GitHub Desktop.
Save curegit/183ef7fc3f38d0c6f84160d4b9083ee8 to your computer and use it in GitHub Desktop.
wwwなしへリダイレクト
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.jp$
RewriteRule ^(.*)$ https://example.jp%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment