custom url rewrite for wordpress

This will do it:

RewriteEngine on
RewriteRule ^test/test-post/index.shtml$ custom/custom.php?cat=1 [L,R]

The [L] flag causes mod_rewrite to stop processing the rule set.

Use of the [R] flag causes an HTTP redirect to be issued to the browser.

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