add_rewrite_rule – Additional subpages for author pages

Which works great when going to this URL: http://mylocalsite.site/?author=1&author_view=pinboard Yes, and that is because in that URL, the author value is a user ID. But in the “pretty” version of that URL (e.g. http://mylocalsite.site/author/admin/pinboard), WordPress uses the user’s “nice name” (from the user_nicename column in the wp_users table) which by default is the same as … Read more

Disabling direct access to images using .htaccess

I have added the following rewrite rule to my .htaccess (above the previous rewrite rule): RewriteRule ^wp-content/uploads/(.*)$ dl-file.php?file=$1 [QSA,L] You presumably have another .htaccess file in the /wp subdirectory that contains the main WordPress directives (ie. # BEGIN WordPress etc.). You should be adding the above rule to the /wp/.htaccess file, not the one in … Read more

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