Post to type posts in subdirectory. [closed]

The answer to your question is dependent upon your hosting environment (IIS, nginx, Apache, etc.). In a nutshell, you are looking to perform a redirect while preserving the original query. Consider https://serverfault.com/a/548595 for an example of one such redirect being performed within nginx.

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