3
votes
Accepted
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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
redirects × 1579seo × 475
htaccess × 382
301-redirect × 328
domains × 152
apache × 125
https × 123
wordpress × 121
url × 113
mod-rewrite × 100
dns × 93
subdomain × 89
google × 72
google-search-console × 69
url-rewriting × 68
302-redirect × 48
web-hosting × 43
404 × 40
php × 38
canonical-url × 37
apache2 × 37
http × 36
iis × 34
google-analytics × 33
no-www × 33