Skip to content

Instantly share code, notes, and snippets.

@agustinhaller
Created April 9, 2012 18:45
Show Gist options
  • Save agustinhaller/2345376 to your computer and use it in GitHub Desktop.
Save agustinhaller/2345376 to your computer and use it in GitHub Desktop.
htacces chkin.at
DirectoryIndex index.php
# remove the next 3 lines if you see a 500 server error
php_flag register_globals off
php_flag magic_quotes_gpc off
php_value display_errors 0
FileETag none
ServerSignature Off
Options All -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^sitemap.xml$ /sitemap.php$1 [L]
RewriteRule ^home$ home.php$1 [L]
RewriteRule ^users/(.*)$ profile.php?u=$1 [L]
RewriteRule ^venue/(.*)$ venue.php?url=$1 [L]
RewriteRule ^checkin$ checkin.php$1 [L]
RewriteRule ^logout$ logout.php$1 [L]
RewriteRule ^claim/(.*)$ claim_venue.php?vid=$1 [L]
RewriteRule ^admin/venue/(.*)$ admin_venue.php?vid=$1 [L]
RewriteRule ^contact$ contact.php$1 [L]
RewriteRule ^FAQ$ faq.php$1 [L]
RewriteRule ^about$ about.php$1 [L]
RewriteRule ^search$ search.php$1 [L]
RewriteRule ^(.*)/checkins/(.*)$ checkin_view.php?u_name=$1&cid=$2 [L]
RewriteRule ^resources/site_list.json$ site_list.php$1 [L]
RewriteRule ^thanks$ thanks.php$1 [L]
RewriteRule ^resources/logged_status$ logged_status.php$1 [L]
RewriteRule ^twitter/auth$ twitter_auth.php$1 [L]
RewriteRule ^twitter/success$ twitter_success.php$1 [L]
RewriteRule ^shorten/(.*)$ shorten.php?longurl=$1 [L]
RewriteRule ^([0-9a-zA-Z]{1,6})$ venue.php?url=$1 [L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment