OAuth2: short summarized overview


  • Authenticating a third-party application with credentials
  • credentials (passwords) must be stored in third-party application
  • no restriction of third-party application access – because of credentials


  • Resource owner: entity granting access to a resource, could be an end-user
  • Resource server: providing the protected resource (data), accepting
  • Client application: e.g. an application making
  • Authorization server: authorizing the client application to access the resource data by issuing

Continue reading “OAuth2: short summarized overview”

Redirect domain always to subdomain (eg. www) in .htaccess

You might want to redirect your website always to www and avoid duplicate content on search engines by providing your website by both domain and www-subdomain. 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^web-devil.com$
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=302]
Continue reading “Redirect domain always to subdomain (eg. www) in .htaccess”