I have a website hosted on plesk, the issue I am having is that the actual URLs for each page have a trailing slash “/” but the Canonical URL generated by sitejet does not have the trailing slash. This is causing every page to throw a “Canonical points to redirect” and degrade my SEO performance.
Please advise on how I can resolve this.
1 Like
So I believe I fixed it.
I found this: .htaccess - Drop trailing slash in apache for directory - Server Fault
Adding the following in the .htaccess appears to resolve the issue so the request is internally rewriting to the index document.
DirectorySlash Off
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_FILENAME}/index.html -f
RewriteRule (.*) $1/index.html [L]
1 Like