Skip to content
  • GDPR-compliant
  • 100% hosting in Germany
  • Personal contact
  • Support included
  • Provisioning within 24 hours
Error & Status Codes 3 min read

HTTP status code 301 Moved Permanently: meaning and use

In short

A 301 Moved Permanently tells browsers and search engines that an address has permanently moved to a new address. Visitors are redirected automatically, and search engines transfer the new address together with its ranking.

What does status code 301 mean?

The server does not answer the request with the content itself, but with the information that the page can permanently be found at another address. The new address is given in the Location response header. Browsers follow the redirect automatically - your visitors usually do not notice anything.

When should you use a 301 redirect?

  • Moving to a new domain
  • Switching from http:// to https://
  • Consistent addresses with or without www
  • Changed page addresses, for example after a relaunch or a new menu structure
  • Merged pages whose old addresses are still linked

301 or 302? Redirect types at a glance

  • 301 Moved Permanently: permanent - search engines adopt the new address.
  • 308 Permanent Redirect: permanent like 301, but the request method (e.g. POST) is preserved.
  • 302 Found and 307 Temporary Redirect: temporary - the old address stays in the search index, for example during maintenance.

For permanent moves, 301 is the right choice.

Setting up 301 redirects with .htaccess

On our web hosting (Apache) you create redirects in the .htaccess file in the root directory of your website. Many CMS such as WordPress also offer their own plugins or settings for this.

Redirect a single page or folder:

Redirect 301 /old-folder/ https://www.muster.de/new-folder/

Redirect all requests to HTTPS:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Consistently with www:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Complete domain move - paths are preserved:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?old-domain\.com$ [NC]
RewriteRule ^ https://www.muster.de%{REQUEST_URI} [R=301,L]

If your .htaccess already contains rules from your CMS (such as the WordPress block), place your redirects above that block.

Unexpected 301 redirect or redirect loop?

  • Check the .htaccess in the root directory and in subfolders for old rules.
  • Check the address settings of your CMS - in WordPress, for example, "WordPress Address" and "Site Address".
  • Browsers remember 301 redirects for a very long time. After making changes, test in a private window or clear the browser cache.
  • If the browser reports "too many redirects", two rules redirect to each other - for example an HTTPS rule in the .htaccess and a second one in the CMS. Remove one of them.

You can see the server's actual response without the browser cache with:

curl -I https://www.muster.de/old-page/

Tips for your search engine ranking

  • Redirect every old address to the matching new page - not across the board to the home page.
  • Avoid redirect chains (A → B → C). Redirect directly to the final destination.
  • Update internal links so that they point directly to the new addresses.
  • Keep redirects in place permanently after a move.

The access logs of your website show how each address is answered: How do I read my log files?

Was this article helpful?

New to SpeedIT Solutions?

Hosting where you know someone.

What you are reading here is what we put into practice for our customers every day. Based in Isernhagen since 2009 - with dedicated contact persons rather than a call centre.

  • 100% hosted in Germany
  • GDPR-compliant
  • Dedicated contact person
  • Provisioning within 24 hours
4.9 88 reviews on Expeero

Top Preis-Leistungsverhältnis

Hab schon Erfahrung mit anderen Hostern z.Bspl.: S...... SpeedIT S hat für mich als privater nutzer das beste Preis-Leistungsverhältnis. Der Kunden-Service bzw Support reagiert innerhalb kürzester Zeit. Sehr übersichtliches Dashboard.
HD S. G.Recommends us · 08/07/2026

100 % recommend us · Expeero

All reviews on HOSTtest (opens in a new window)

You might also be interested in:

Personal support

Of course, our support team is also happy to assist you personally. If you cannot find what you are looking for in our knowledge base or require personalised support, please do not hesitate to contact us. We’re here to help you and to ensure that your experience with our products and services is as smooth and enjoyable as possible.