After duplicating site to a sub folder, links send user to original site

In response to @krysiek’s comment above, I simply selected the default permalink setting, saved, then selected correct permalink setting and resaved. Works perfectly.

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