How to use the ‘og’ (Open Graph) meta tag for Facebook share

Use: <!– For Google –> <meta name=”description” content=”” /> <meta name=”keywords” content=”” /> <meta name=”author” content=”” /> <meta name=”copyright” content=”” /> <meta name=”application-name” content=”” /> <!– For Facebook –> <meta property=”og:title” content=”” /> <meta property=”og:type” content=”article” /> <meta property=”og:image” content=”” /> <meta property=”og:url” content=”” /> <meta property=”og:description” content=”” /> <!– For Twitter –> <meta name=”twitter:card” … Read more

What is “X-Content-Type-Options=nosniff”?

It prevents the browser from doing MIME-type sniffing. Most browsers are now respecting this header, including Chrome/Chromium, Edge, IE >= 8.0, Firefox >= 50 and Opera >= 13. See : https://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx?Redirected=true Sending the new X-Content-Type-Options response header with the value nosniff will prevent Internet Explorer from MIME-sniffing a response away from the declared content-type. EDIT: … Read more

Redirect from an HTML page

Try using: <meta http-equiv=”refresh” content=”0; url=http://example.com/” /> Note: Place it in the <head> section. Additionally for older browsers if you add a quick link in case it doesn’t refresh correctly: <p><a href=”http://example.com/”>Redirect</a></p> Will appear as Redirect This will still allow you to get to where you’re going with an additional click.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)