Use URI suffix as parameter and ignore when resolving page

@Aboelabbas gave me the hint I needed. Although I don’t really know what I did different, here is the working code for all three modes I need: <?php add_filter(‘query_vars’, function ($query_vars) { $query_vars[] = ‘mode’; return $query_vars; }); add_action(‘init’, function () { add_rewrite_rule( ‘(.+)/buchung$’, // Rule for URLs ending with “/buchung” ‘index.php?pagename=$matches[1]&mode=booking’, ‘top’ ); add_rewrite_rule( … Read more

URL rewriting in wordpress using parameters

I ended up scrapping the WordPress solutions described and WordPress all together for this project and building my own basic front end. Using this answer: https://technicalseo.com/tools/htaccess/ I was able to create a rule for each possibility. Bear in mind, the URL must contain index.php in order to work and URL parameters are not passed to … Read more

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