Have WordPress post redirect to url when accesed from iPad (Safari)

A quick Google shows up with this

There’s 2 ways you can do this:

  1. Detect the user agent with JavaScript and redirect
  2. Detect the user agent server-side and redirect

With JavaScript you’d modify the code on the page linked above, with PHP you’d compare $_SERVER['HTTP_USER_AGENT'] to whatever the user agent of iPads contain.

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