How to use endpoint, but remove/rewrite endpoint base?

I think the add_rewrite_rule is the correct route to go and I think what you have is correct also barring the Regex. Try substituting what you have currently for this => ^my-page\/([0-9]+)\/?. Full code below: function setup_filter_rewrites(){ add_rewrite_rule(‘^my-page\/([0-9]+)\/?’, ‘index.php?pagename=my-page&my_var=$matches[1]’, ‘top’); } add_action( ‘init’, ‘setup_filter_rewrites’ );

Complex rewrite rules with multiple variables, some the same

For those interested I got around it by doing the following add_rewrite_rule( ‘members/search/(.+?)?$’, ‘index.php?page_id=’ . $member_page_id . ‘&search=$matches[1]’, ‘top’ ); So essentially getting everything after the search then dealing that when parsing the query I then parsed the query like so from the ‘search’ query_var function wpse_set_pre_get_users( $query ){ if( ! is_admin() ){ $meta_query = … Read more

How to add rewrite rule to point to file

add_rewrite_rule should choose where to write your rules to internal array of rewrite_rules or to .htaccess. If I understand logic behind this code SSLA_PLUGIN_URL is something like http://www.example.com/wp-content/plugins/plugin/… in this case you should check your .htaccess (in case if you using apache), because all external rules goes there. You can continue to debug your redirections … Read more

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