Skip to content

Commit

Permalink
Create .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
ljsharp committed Aug 17, 2023
1 parent 6e8074e commit cd136d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ "https\:\/\/yourdomain\.com\/$1" [R=301,L]
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yourdomain.com$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
</IfModule>

<Files xmlrpc.php>
order deny,allow
deny from all
</Files>

0 comments on commit cd136d2

Please sign in to comment.