This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Redirect 301 /oldpage.html / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Directory "/home/website/public_html"> | |
| Options FollowSymLinks MultiViews | |
| AllowOverride All | |
| Order allow,deny | |
| Allow from all | |
| ExpiresByType text/html "access plus 1 day" | |
| ExpiresByType text/css "access plus 1 day" | |
| ExpiresByType text/javascript "access plus 1 day" | |
| ExpiresByType image/gif "access plus 1 month" | |
| ExpiresByType image/jpg "access plus 1 month" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #The URL in the browser would be: | |
| #http://css-tricks.com/index.php/teachers/a/ | |
| #The actual page rendered by the server would be: | |
| #http://css-tricks.com/index.php?search=teachers&sort=a | |
| RewriteEngine on | |
| RewriteRule ^index/([^/]+)/([^/]+).php /page.php?search=$1&sort=$2 [NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^your-site.com [NC] | |
| RewriteRule ^(.*)$ http://www.your-site.com/$1 [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AddType application/octet-stream .csv | |
| AddType application/octet-stream .xls | |
| AddType application/octet-stream .doc | |
| AddType application/octet-stream .avi | |
| AddType application/octet-stream .mpg | |
| AddType application/octet-stream .mov | |
| AddType application/octet-stream .pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
| <script type="text/javascript"> | |
| google.load('jquery', '1'); | |
| /*google.load("jqueryui", "1");*/ | |
| </script> | |
| <script type="text/javascript"> | |
| $(function(){ | |
| console.log('jquery loaded!'); | |
| });//END Doc Ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html" charset="utf-8" /> | |
| <meta name="description" content="" /> | |
| <meta name="keywords" content="" /> | |
| <meta name="robots" content="" /> | |
| <meta name="author" content="Christopher A. Moore : chris@camdesigns.net" /> | |
| <link REL="SHORTCUT ICON" HREF="imgs/favicon.ico"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Please read description below : the following .htaccess file isn't enough ### | |
| # 1. Activate URL rewriting | |
| RewriteEngine On | |
| # 2. If the base folder is different from / | |
| #RewriteBase /xyz | |
| # 3.a. Removes the "www" ... | |
| RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * CRUD | |
| * | |
| */ | |
| class Site_model extends CI_Model{ | |
| function get_records() | |
| { |