forked from facebookarchive/open-graph-protocol
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup the rewrite rules. I put examples for each one, so we at leas…
…t have test cases
- Loading branch information
Showing
1 changed file
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |