301 Server Code

A "301" is a status code that is returned by a website’s server when accessing a url that has been moved. Just like mail forwarding, a 301 specifies a permanent "change of address" for a page/file which has been moved. A 301 indicates a permanent redirection whereas a 302 indicates a temporary redirection.


Examples

Redirect from WWW to Non-WWW

RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Format: html

Redirect from Non-WWW to WWW

RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Format: html

CSS

.highlight { padding: 9px 14px; margin-bottom: 14px; background-color: #f7f7f9; border: 1px solid #e1e1e8; border-radius: 4px; text-align: left; \/* display: block; */ }

Format: css

eCourse


{"timelineable_id":4,"timelineable_type":"App\\Models\\Content\\Term\\Term","updated_at":"2018-04-22 01:52:58","created_at":"2018-04-22 01:52:58","id":241}
Refresh

Timeline not found.


View Count: 1