Hello @yavuzyayla, ? Thank you for contacting us and sorry for any inconvenience that might have been caused due to that. ? Could you please share any affected page URLs with us so that we can check the issue further for you? ? Meanwhile, please check the Advanced tab of the Rank Math SEO Meta box and see if you’ve set the custom canonical URL there. You can keep the Canonical URL field blank so that Rank Math can generate self-referencing canonical for your page. ? For more details on Rank Math SEO Meta box Advanced tab, you can check this URL:?https://rankmath.com/kb/advanced-tab/ ? Let us know how it goes. Looking forward to helping you. ? Thank you.
Hey @rankmathsupport thanks for the reply. This is how my homepage looks like and the Advanced Tab. I left it blank. I really don’t want to put links here so we don’t get indexed with problems ?? I’m more than happy to send you via e-mail or otherwise
Hello @yavuzyayla, ? Instead of changing the canonical, it would be best if the website was actually loading only the trailing slash variation. ? You could do that by updating the settings on WordPress and also include a redirection to the correct variation in the server configuration. ? You can refer to this tutorial on how to do that:?https://rankmath.com/kb/how-to-redirect-to-urls-with-trailing-slash/ ? Don’t hesitate to get in touch if you have any other questions.
Hi, thanks for the Reply. That helps narrow it down. Just want to double check before doing anything.
So my current .htaccess is this:
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /ratgeber/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ratgeber/index.php [L] </IfModule> # BEGIN WordPress # Die Anweisungen (Zeilen) zwischen ?BEGIN WordPress“ und ?END WordPress“ sind # dynamisch generiert und sollten nur über WordPress-Filter ge?ndert werden. # Alle ?nderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /ratgeber/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ratgeber/index.php [L] </IfModule>
# END WordPress
I would only add it like this then?
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /ratgeber/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ratgeber/index.php [L] </IfModule> # BEGIN WordPress # Die Anweisungen (Zeilen) zwischen ?BEGIN WordPress“ und ?END WordPress“ sind # dynamisch generiert und sollten nur über WordPress-Filter ge?ndert werden. # Alle ?nderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /ratgeber/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ratgeber/index.php [L] </IfModule>
Hello @yavuzyayla, ? Yes, you can use the example code we shared on the tutorial at the bottom of your server configuration file. ? If that doesn’t work you need to consult with the hosting manager to check whether or not the rules are triggering the redirection correctly and make any slight modifications to the code if necessary. ? Thank you.
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Canonicalion Issue On Blog Home Page’ is closed to new replies.