HTTP Code: 301 (Moved Permanently)
HTTP Status Code Reference
Status Category
3xx — Redirection
Meaning & Definition
The target resource has been assigned a new permanent URI and any future references to this resource should use one of the returned URIs.
Common Causes
- Migrating site domain URLs
- Enforcing secure HTTPS redirection rules
- Fixing legacy URL structures
How to resolve HTTP code errors
1. Inspect Logs: Check server logs (e.g. error.log) to locate runtime exceptions or database disconnects.
2. Test Endpoint: Use our Uptime Checker or redirects prober to verify response headers and payload size.
3. Configure Rules: Implement custom redirect rules or error fallback paths below in Nginx/Apache config.
Nginx Configuration Setup
server {
listen 80;
server_name old.com;
return 301 https://new.com$request_uri;
}Apache Configuration Setup
RedirectPermanent /old-path /new-path