Skip to content

Instantly share code, notes, and snippets.

View demagu's full-sized avatar

Darek Magusiak demagu

  • London, Ontario
  • 20:55 (UTC -04:00)
View GitHub Profile
@demagu
demagu / .htaccess
Last active December 6, 2015 01:29
.htaccess rules to improve your SEO
# Enable gzip
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</IfModule>
# Force caching
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
@demagu
demagu / How to edit virtual host settings in cPanel.md
Last active September 21, 2021 08:58
How to edit virtual host settings in cPanel

How to: How to edit virtual host settings in cPanel

Login to your server:

Then:

  • Step 1: mkdir -p /usr/local/apache/conf/userdata/std/2/{username}/{domain.com}

  • Step 2: cd /usr/local/apache/conf/userdata/std/2/{username}/{domain.com}