3 votes

Using a redirect link in rel=canonical link tag bad for SEO?

The canonical should point to the URL with a status code 200. Pointing the canonical to a redirect beats the purpose and makes it more likely that Google ignores it.
user avatar
2 votes

Rewrite three URL directories to corresponding PHP files and pass subdirectory as a parameter

RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule ^(download-file)/([^/]+)$ https://example.com/download-file?name=$2 [L] By using an absolute URL (with scheme + hostname) in the substitution ...
user avatar
  • 41.2k

Only top scored, non community-wiki answers of a minimum length are eligible