Skip to content

Commit

Permalink
Cleanup the rewrite rules. I put examples for each one, so we at leas…
Browse files Browse the repository at this point in the history
…t have test cases
  • Loading branch information
ptarjan committed Mar 20, 2012
1 parent 5fe74a7 commit 8db4293
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions ns/.htaccess
Original file line number Diff line number Diff line change
@@ -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.