How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory

I’ve fixed it using the rule below

RewriteRule ^(.*)wordpresshttps:/www.example.com/(.*)$ https://www.example.com/$2 [L,R=301]

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