How to add a forward slash after the domain name
-
Hi, My website’s source code shows instances where domain names don’t end with a slash (/). Most domain names have a slash at the end, but one place is missing. Please see the attachment. How can I fix this?
Attachments:
You must be
logged in to view attached files.
Hello,
This is not an issue with the theme. WordPress may output the homepage URL with or without a trailing slash depending on the site’s URL configuration and WordPress core functions. Both URLs are valid and should resolve to the same page, with WordPress handling any necessary redirect to the canonical URL.
Therefore, this does not affect your site’s functionality or SEO.
If your SEO audit tool is specifically reporting this as an issue, please let us know which tool you’re using and share the exact warning message so we can investigate further.
Best Regards.