Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Dandy Ari Ramadhan dandyarir

🎯
Focusing
View GitHub Profile
View cloudSettings
{"lastUpload":"2020-01-28T00:53:31.093Z","extensionVersion":"v3.4.3"}
View gist:1f5a428f13b69bf1a456b32e5d154398
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
View head.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $title; ?></title>
<!-- Global stylesheets -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
You can’t perform that action at this time.