Reputation: 20649
My website's root page automatically redirects all users to some subpage via http header.
http://example.com/ → http://example.com/subpage
I want to use my domain example.com
as OpenID. The problem is that I have to add some tag to my root page, but it should redirect all users on subpage. I can change the type of redirection and use e.g. meta tag. But is there a better way to implement that and don't break instant http redirect?
Maybe I can somehow distinguish OpenID request and only that time respond with html?
Upvotes: 3
Views: 277
Reputation: 11395
You can specify the location of a Yadis document (which could be a static file in public/
) by setting the X-XRDS-Location
header, or you can choose to handle the application/xrds+xml
MIME type at your application root dynamically.
Upvotes: 3