Skip to content

Instantly share code, notes, and snippets.

View kennethsnippet's full-sized avatar

kennethsnippet

View GitHub Profile
@kennethsnippet
kennethsnippet / gist:3835237
Created October 4, 2012 17:49
ci_htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
@kennethsnippet
kennethsnippet / gist:3757593
Created September 20, 2012 18:39
HTML: Html5+jquery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>untitled</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
</head>
<body>
</body>
@kennethsnippet
kennethsnippet / gist:3756560
Created September 20, 2012 15:21
php: redirect
<?php
header('Location: http://you_stuff/url.php'); // stick your url here
?>