301pysyvä
301pysyvä refers to the HTTP status code 301, meaning that the requested resource has permanently moved to a new URL. When a client requests a URL that returns 301, the server provides a Location header with the new address, and clients are expected to update bookmarks and search engines should transfer ranking signals to the new URL.
Use cases include migrating pages during site restructuring, changing URL paths, moving to a new domain, or
SEO and web performance considerations: a 301 redirects most of the link equity (ranking signals) from the
- Apache (in .htaccess): Redirect 301 /old-page.html http://example.com/new-page.html
or using mod_rewrite: RewriteEngine On; RewriteRule ^old-page.html$ /new-page.html [R=301,L]
- Nginx: rewrite ^/old-page.html$ /new-page.html permanent;
- IIS: use URL Rewrite module to configure a 301 redirect.
Caveats: browsers may cache 301 redirects, which can slow changes; verify redirects with tools like curl -I