Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Webbanditten/6be4989ef77117bd15800adcdf219cc8 to your computer and use it in GitHub Desktop.
Save Webbanditten/6be4989ef77117bd15800adcdf219cc8 to your computer and use it in GitHub Desktop.
RewriteCond %{REQUEST_URI} !^.well-known/acme-challenge
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^.well-known/acme-challenge
REWRITERULE ^(.*)$ https://cyberpanel/$1 [P]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment