barryhunter/mobile-geograph/master/.htaccess - Htaccess File

barryhunter/mobile-geograph/master/.htaccess

RewriteEngine on

RewriteRule ^gridref/([A-Za-z]{1,2}[0-9]{2})$ /hectad.php?hectad=$1 [qsa]
RewriteRule ^gridref/([A-Za-z]{1,2})$ /myriad.php?myriad=$1 [qsa]
RewriteRule ^gridref/(.*)/links /location.php?gridref=$1 [qsa]
RewriteRule ^gridref/(.*) /browse.php?gridref=$1 [qsa]

RewriteRule ^snippet/([0-9]+) /snippet.php?id=$1 [qsa]
RewriteRule ^snippet/([0-9]+) /snippet.php?id=$1 [qsa]
RewriteRule ^blog/([0-9]+) /blog/entry.php?id=$1 [qsa]

RewriteRule ^photo/([0-9]+).xml /api/photo/$1 [qsa]

RewriteRule ^photo/([0-9]+).rdf /rdfapi.php?id=$1 [qsa]
RewriteRule ^photo/([0-9]+).kml /kml.php?id=$1 [qsa]
RewriteRule ^photo/([0-9]+) /view.php?id=$1 [qsa]

RewriteRule ^api/.* /restapi.php [qsa]

RewriteRule ^tagged/(.*) /tagged.php?tag=$1 [qsa]
RewriteRule ^of/(.*) /of.php?q=$1 [qsa]
RewriteRule ^near/(.*) /near.php?q=$1 [qsa]

RewriteRule ^map/(.*) /mapbrowse.php?t=$1 [qsa]

RewriteRule ^profile/(d+)/?$ /profile.php?id=$1 [qsa]

On Github License

Files

Download PDF of Htaccess file

Comments

Apache