Skip to content

Instantly share code, notes, and snippets.

@josanua
Last active June 29, 2023 14:18
Show Gist options
  • Select an option

  • Save josanua/dc10e15efd662ae7511dc3d410fbb452 to your computer and use it in GitHub Desktop.

Select an option

Save josanua/dc10e15efd662ae7511dc3d410fbb452 to your computer and use it in GitHub Desktop.
htacces - Godaddy
#https://uk.godaddy.com/help/redirect-http-to-https-for-wordpress-on-linux-27904
#For Linux host
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
// For http to https redirect (work on bluehost)
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
#copied from working host
# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^cascadepolicy\.org$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security "max-age=300"
</IfModule>
# END GD-SSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# end copied from working host
#Change the numbers to the values that you need.
#The max execution time and max input time values are in seconds and might need to be increased further if your internet connection is slow.
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment