Add rewrite endpoint and .htaccess

https://xxxx.com/informe-calculadora/1/[email protected]&id=610 Redirect 301 /wp-content/plugins/custom-plugin/public/partials/informe.php /informe-calculadora/$1 The $1 “backreference” at the end of the target URL is in error (the Redirect directive does not support regex in which backreferences can be captured). This will likely be seen as literal text, which would explain the erroneous 1 at the end of the target URL (the $ is … Read more

Please give me the rewrite rules for my ugly urls

if you are trying to get http://www.myblog.com/currentpage/1 http://www.myblog.com/currentpage/2 then your function should be add_action(‘generate_rewrite_rules’, ‘currentpage_rewrite_rule_222’); function currentpage_rewrite_rule_222($wp_rewrite){ $newrules = array(); $new_rules[‘currentpage/(\d*)$’] = ‘index.php?currentpage=$matches[1]’; $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } and just keep your query_vars function the way it is. add_filter(‘query_vars’, ‘wpa3537_query_vars’); function wpa3537_query_vars($query_vars) { $query_vars[] = ‘currentpage’; return $query_vars; }