Custom URL segment parameters for posts

Have you thought of making post type, taxonomy, terms?

If you do so, it will be a lot easier for you to code and get the above urls.

If any confusion, let me know.

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