What’s the purpose of admin canonical tag?

I have searched through Google and WordPress developer resources, but nothing came up. I understand the purpose of rel=”canonical” tag in a website’s frontend (it’s part of the website SEO), but I fail to understand its purpose in WordPress Admin area (backend). Example in a local WordPress installation: <link id=”wp-admin-canonical” rel=”canonical” href=”http://localhost/wordpress/wp-admin/plugins.php” /> What is … Read more

stop redirection on /wp-admin call to /wp-login

I am building a website, with wordpress+buddypress (latest version). In this website, I have my own custom login|signup|resetpass forms, and i do not want to link them to back-end wp-forms. And I have blocked back-end forms for all users (default wp-login|signup|resetpass forms)(with a 404) So if you try to reach wp-admin/wp-login you will see the … Read more

Wrong canonical link on wp-admin pages

I have a subdomain: https://blog.example.com/ I forcibly redirects to directory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. My .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] RewriteCond %{HTTP:X-Forwarded-Host}i ^example\.com RewriteCond %{HTTP_HOST} ^blog\.example\.com$ RewriteRule ^/?(.*)$ https://www.example.com/blog/$1 [L,R=301,NC] RewriteCond %{HTTP:X-Forwarded-Proto} !https … Read more

Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 445

After changing siteurl ,home url form database it shows 3/4 errors called Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 445 Notice: Undefined index: scheme in /var/www/html/wp-includes/canonical.php on line 465 Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 444 Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 444 I have no idea whats wrong with … Read more

How to prevent automatic redirection of 404 errors and “incorrect” URLs?

WordPress has a feature whereby it will automatically redirect your URLs if it percieves them to be written wrongly. Here is an example: I have a page called my-page If I go to: www.mysite.com/something/my-page/ it will immediately redirect me to www.mysite.com/my-page/ as nothing exists at the first URL. How can I turn this feature off, … Read more