Pretty URL via Rewrite

It’s the redirect in htaccess that will route the “pretty” url into the real querystring based url that is the issue. So, it would seem you need to “remove” the /{nicename} portion from the “pretty” URL of the form https://example.com/members-list-profile/{nicename}/?uid=XX. Try something like the following at the top of your .htaccess file (before the WordPress … Read more

Change author base and slug in author link

i found out what i was doing wrong, i used this part like i mentioned add_filter( ‘request’, ‘wpse5742_request’ ); function wpse5742_request( $query_vars ) { if ( array_key_exists( ‘author_name’, $query_vars ) ) { global $wpdb; $author_id = $wpdb->get_var( $wpdb->prepare( “SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key=’nickname’ AND meta_value = %s”, $query_vars[‘author_name’] ) ); if ( $author_id ) … Read more

Custom Params in URL

The regex you have in the rewrite rule, ([0-9]+), will not match your query string ex%2021. Try ?b=21 and see if that works. Also, new rewrite rules require that the rewrite rules are flushed. You can do this one of two ways. Either call flush_rewrite_rules(); or go to Settings > Permalinks and click save. Please … Read more

Rewrite query var on postname

So, first up, I don’t believe that you need a rewrite tag in this situation, so you can omit that. The issue, I believe, with the remaining code is that your rewrite rule is only capturing 1 match (because there’s only one set of ()), so subpage isn’t receiving a value. Additionally, your rule seems … Read more

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