How to rename the WordPress wp-login.php running on IIS6?

I wrote a blog post a while back, this is a quick and dirty hack to make hackers think your wp-login.php is a 404 page. http://dave.kz/hide-your-wp-login-page-from-hackers/. (From blog post) Basically, I’ve added… header(“HTTP/1.0 404 File Not Found”); to the top of the wp-login.php page. Hopefully the attacker is looking for a 200 HTTP response. In … Read more

rewriting an Url

You can customise the way your links are generated by going to the admin menu of WordPress then settings -> permalinks. There will be multiple options to choose from or you may construct a ‘custom’ permalink structure to fit your needs. So in your case, you may want to use the custom structure option and … Read more

URL rewrites af

Use add_rewrite_rule(). function wpse325663_rewrite_resource_type() { add_rewrite_rule(‘^resources\/(.+)/?’, ‘resources/?type=$matches[1]’, ‘top’); } add_action(‘init’, ‘wpse325663_rewrite_resource_type’); An important note from the codex: Do not forget to flush and regenerate the rewrite rules database after modifying rules. From WordPress Administration Screens, Select Settings -> Permalinks and just click Save Changes without any changes.

Own code on index.php wordpress theme file, help with the rewrite rules

Your rewrite rules must not start with the first slash, that is already stripped out. So the following code will add a rewrite rule that will set a query variable that we can later use: add_action( ‘init’, ‘wpse9016_init’ ); function wpse9016_init() { add_rewrite_rule( ‘currentpage/(\d+)/?’, ‘index.php?wpse9016_currentpage=$matches[1]’, ‘top’ ); } This query variable is ignored unless we … Read more

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