Mapping multiple URLs to same page

You can use the same answer as the question you referred to (I have answered it). Here’s how you would change to pass the arguments: <?php add_action(‘init’, ‘add_my_rule’); function add_my_rule() { global $wp; $wp->add_query_var(‘args’); add_rewrite_rule(‘test\/finaldestination\/(.*)’,’index.php?pagename=about&args=$matches[1]’,’top’); } ?> Assuming ‘finaldestination’ stays the same always, and the pagename (slug) is ‘about’ (you can change both). Apply your … Read more

How to eliminate the Web Address / Web Link textbox from comment forms

You made a mistake when put your functions.php file into mu-plugins directory. Why? Because your file rendered above is not a plugin, it is just a script. WordPress looks for a plugin inside mu-plugins directory. So you have to do one of two things: Add plugin header into functions.php file Move functions.php file into your … Read more

Why is there a # and other characters in URL for WordPress site?

Check your database,maybe you’re hacked. Here what must be searched: wp_options,this is the name the wordpress option,the second record is your blog_name. (If you’re new bie in porgraming and/or wordpress here the steps: 1.Go to cpanel(on your hosting): 2.Search for “phpMyAdmin”and select it 3. Must be find your wordpress database, if you’re lucky the name … Read more

Rewrite rule for incoming urls

This solved both parts: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^archives/(.*)$ /\?p=$1 [R=301,L,QSA] </IfModule> The QSA flag maintained the query string automagically. Most importantly, I had to put it above the existing WordPress rewrite rules in order for it to work.

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