Skip to content

Instantly share code, notes, and snippets.

Sylvain Ceccaldi sceccaldi

Block or report user

Report or block sceccaldi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sceccaldi
sceccaldi / path.php
Created Mar 18, 2013
Display path of the repo
View path.php
<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
?>
@sceccaldi
sceccaldi / .htaccess
Created Mar 18, 2013
Remove index.php from Expression Engine 2 URLs
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php from ExpressionEngine URLs
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
@sceccaldi
sceccaldi / .gitignore
Created Mar 18, 2013
.gitignore for Expression Engine 2
View .gitignore
.DS_Store
# Images
images/avatars/
images/captchas/
images/smileys/
images/member_photos/
images/signature_attachments/
images/pm_attachments/
images/uploads/
You can’t perform that action at this time.