Skip to content

Instantly share code, notes, and snippets.

@fana605
fana605 / teste.php
Created September 14, 2011 10:30
teste
<?php
echo 'teste';
?>
Table Pages
| id | title | slug | page_type |
| ------ | ------------- | ------------- | --------- |
| 1 | Home | home | page |
| 2 | Latest News | latest-news | news |
| 3 | About Us | about-us | page |
Table Page Types
| id | title | slug | route |
| ------ | ------------- | ------------- | -------------------- |
@fana605
fana605 / gist:1e39f5f539733ca6a992dc6d99a15b77
Last active August 3, 2021 17:45
Force htaccess https Dreamhost
<IfModule mod_rewrite.c>
# Make sure directory listing is disabled
Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#AllowOverride All
@fana605
fana605 / .htaccess
Created September 18, 2023 16:46
Dreamhost change PHP version with .htaccess
AddHandler fcgid-script .php
FCGIWrapper "/dh/cgi-system/php74.cgi" .php