sprtid/checkin-app/master/.htaccess - Htaccess File

sprtid/checkin-app/master/.htaccess

# Use PHP5.6 as default
# AddHandler application/x-httpd-php56 .php

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteRule ^v1/profiles/([^/]+)/scopes/([^/]+)/data/? /wp-content/themes/_tk/ajax-edit-profile-group.php?profile_id=$1&scope=$2 [QSA,L]

  # Profiles
# RewriteCond %{REQUEST_METHOD} =DELETE
# RewriteRule ^v1/profiles/([^/]+) /wp-content/themes/_tk/v1/profile-removal.php?profile_id=$1 [QSA,L]

# RewriteRule ^v1/profiles/false/checkins /wp-content/themes/_tk/v1/profile-list.php [QSA,L]
# RewriteRule ^v1/profiles/([^/]+)/checkins/([^/]+) /wp-content/themes/_tk/v1/profile-checkin-detail.php [QSA,L]
# RewriteRule ^v1/profiles/([^/]+)/checkins /wp-content/themes/_tk/v1/profile-checkin-list.php [QSA,L]
# RewriteRule ^v1/profiles/false/events /wp-content/themes/_tk/v1/profile-list.php [QSA,L]
# RewriteRule ^v1/profiles/([^/]+)/events/([^/]+) /wp-content/themes/_tk/v1/profile-event-detail.php [QSA,L]
# RewriteRule ^v1/profiles/([^/]+)/events /wp-content/themes/_tk/v1/profile-event-list.php [QSA,L]
# RewriteRule ^v1/profiles/false/teams /wp-content/themes/_tk/v1/profile-list.php [QSA,L]
# RewriteRule ^v1/profiles/([^/]+)/team/([^/]+) /wp-content/themes/_tk/v1/profile-team-detail.php [QSA,L]
# RewriteRule ^v1/profiles/([^/]+)/teams /wp-content/themes/_tk/v1/profile-team-list.php [QSA,L]
# RewriteRule ^v1/profiles/false /wp-content/themes/_tk/v1/profile-list.php [QSA,L]
RewriteRule ^v1/profiles/([^/]+) /wp-content/themes/_tk/v1/profile-detail.php?profile_id=$1 [QSA,L]

RewriteCond %{REQUEST_METHOD} =POST
RewriteRule ^v1/profiles /wp-content/themes/_tk/v1/profile-creation.php [QSA,L]

RewriteRule ^v1/profiles /wp-content/themes/_tk/v1/profile-list.php [QSA,L]

  # Events
# RewriteCond %{REQUEST_METHOD} =DELETE
# RewriteRule ^v1/events/([^/]+) /wp-content/themes/_tk/v1/event-removal.php?profile_id=$1 [QSA,L]

RewriteRule ^v1/events/([^/]+)/profiles/([^/]+) /wp-content/themes/_tk/v1/event-checkin-form.php?event_id=$1&profile_id=$2 [QSA,L]
RewriteRule ^v1/events/([^/]+)/profiles /wp-content/themes/_tk/v1/event-checkin-form.php?event_id=$1&profile_id=$2 [QSA,L]

RewriteCond %{REQUEST_METHOD} =POST
RewriteRule ^v1/events/([^/]+)/profiles /wp-content/themes/_tk/v1/event-checkin-creation.php?event_id=$1 [QSA,L]

# RewriteRule ^v1/events/([^/]+)/teams/([^/]+) /wp-content/themes/_tk/v1/event-team-detail.php?event_id=$1 [QSA,L]
# RewriteRule ^v1/events/([^/]+)/teams /wp-content/themes/_tk/v1/event-team-list.php?event_id=$1 [QSA,L]
RewriteRule ^v1/events/([^/]+) /wp-content/themes/_tk/v1/event-detail.php?event_id=$1 [QSA,L]

# RewriteCond %{REQUEST_METHOD} =POST
# RewriteRule ^v1/events /wp-content/themes/_tk/v1/event-creation.php [QSA,L]

## Events that the user has access to (read: all events)
RewriteRule ^v1/events /wp-content/themes/_tk/v1/event-list.php [QSA,L]

  # Teams
# RewriteCond %{REQUEST_METHOD} =DELETE
# RewriteRule ^v1/teams/([^/]+) /wp-content/themes/_tk/v1/team-removal.php?profile_id=$1 [QSA,L]

# RewriteRule ^v1/teams/([^/]+)/profiles/([^/]+) /wp-content/themes/_tk/v1/team-profile-detail.php?team_id=$1 [QSA,L]
# RewriteRule ^v1/teams/([^/]+)/profiles /wp-content/themes/_tk/v1/team-profile-list.php?team_id=$1 [QSA,L]
# RewriteRule ^v1/teams/([^/]+) /wp-content/themes/_tk/v1/team-detail.php?team_id=$1 [QSA,L]

# RewriteCond %{REQUEST_METHOD} =POST
# RewriteRule ^v1/teams /wp-content/themes/_tk/v1/team-creation.php [QSA,L]

## Events that the user has access to (read: my organized teams)
# RewriteRule ^v1/teams /wp-content/themes/_tk/v1/team-list.php [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

On Github License

Files

Download PDF of Htaccess file
POST, Profile, REQUEST_FILENAME, REQUEST_METHOD

Comments

Apache