Permalink
Browse files

Cleanup the rewrite rules. I put examples for each one, so we at leas…

…t have test cases
  • Loading branch information...
1 parent 5fe74a7 commit 8db4293f8ae3a06f4d53e67ff5cbe1c5c268582e @ptarjan ptarjan committed Mar 20, 2012
Showing with 15 additions and 4 deletions.
  1. +15 −4 ns/.htaccess
View
@@ -1,8 +1,19 @@
RewriteEngine On
+# Facebook Apps
+# http://ogp.me/ns/fb/social_drinking
RewriteRule fb/(.+) http://graph.facebook.com/schema/og/fb/$1 [L]
+
+# The root Facebook Namespace
+# http://ogp.me/ns/fb
+# http://ogp.me/ns/fb/
RewriteRule fb/? http://graph.facebook.com/schema/og/ [L]
-RewriteRule / ns/ [L]
-RewriteRule ^/ns/class /ns [L]
-RewriteRule (ogp.me..*) $1 [L]
-RewriteRule ([^/]+) http://graph.facebook.com/schema/og/$1 [L]
+
+# Vertical OG Namespaces
+# http://ogp.me/ns/music
+# http://ogp.me/ns/book
+# The NS means it won't be used for subrequests
+RewriteRule ^([^/]+)$ http://graph.facebook.com/schema/og/$1 [L,NS]
+
+# The root OG Namespace is handled by index.php
+# http://ogp/me/nsa

0 comments on commit 8db4293

Please sign in to comment.