Custom rewrite rule for backend/admin?

In general, it is possible, but you need to define ADMIN_COOKIE_PATH in your wp-config.php to the value / which might cause security issues. First of all define this rewrite rules in your .htaccess right before the rewrite rule of wordpress: # Make sure, there is a trailing slash RewriteRule ^submit-project/add$ submit-project/add/ [R=301,L] # mask the … Read more

Removing the post format (type) slug

In your last code example, you’re returning a wrong type for the post_format_rewrite_base. It should be a string, not an array. However, your idea goes in the right direction. You have to take care about all the «routes» that are implied by the default rewrite rules, WordPress creates for post formats: type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ => index.php?post_format=$matches[1]&feed=$matches[2] type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ … Read more

Change WordPress comments url / word

In your functions.php add ( there are other rules relating to comment pages you can see them all with Rewrite Rules Inspector plugin, this one just covers the case you mention ) add_rewrite_rule ( ‘(.?.+?)/customname-([0-9]{1,})/?$’, ‘index.php?pagename=$matches[1]&cpage=$matches[2]’, ‘top’ ); you’ll also need to find in your theme ( possibly in your function.php ) where the comments … Read more

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