RewriteEngine On # Edit if needed RewriteBase /lodr/ # Default view - edit if needed RewriteRule ^$ index.php?action=clouds&format=html [QSA] # Tagclouds RewriteRule ^clouds$ index.php?action=clouds&format=html [QSA] # Generic lists views RewriteRule ^items/all$ index.php?action=items&format=html [QSA] RewriteRule ^items/orphans$ index.php?action=orphans&format=html [QSA] RewriteRule ^items/conflicts$ index.php?action=conflicts&format=html [QSA] RewriteRule ^items/lod$ index.php?action=lod&format=html [QSA] # URI and Tag lists views - HTML RewriteRule ^items/uri/(.+)$ index.php?action=uri&uri=$1&format=html [QSA,L] RewriteRule ^items/tag/(.+) index.php?action=tag&tag=$1&format=html [QSA,L] # URI and Tag lists views - Exhibit RewriteRule ^exhibit/uri/(.+)$ index.php?format=exhibit&action=uri&uri=$1 [L] RewriteRule ^exhibit/tag/(.+)$ index.php?format=exhibit&action=tag&tag=$1 [L] RewriteRule ^exhibit/(.+)$ index.php?format=exhibit&action=$1 [L] # Browse items RewriteRule ^item/(.+)/edit$ index.php?item=$1&action=edit&format=html [L] RewriteRule ^item/(.+)$ index.php?item=$1&format=html&action=view [QSA,L] # Setup LODr instance RewriteRule ^setup$ index.php?action=setup&format=html [QSA] # SPARQL endpoint RewriteRule ^sparql$ index.php?action=sparql&format=html [QSA] # Update data RewriteRule ^update$ index.php?action=update&format=html [QSA] # Tag rewrite rule RewriteRule ^tag/(.+)$ items/tag/$1 [R=303] # Sitemap RewriteRule ^sitemap.xml$ index.php?action=sitemap&format=html [L]