I have written a RewriteRule for the UrlRewritingNet module. In this rule i want to append alttemplate=[template] to the request based on the user agent.
[template] itself needs to be determined based on what template would normally be used for the requested page. So I need to determine either the templateid of the requested page, or the nodeid, from where i can obtain the templateid with a bit of querying.
If it helps, what I am trying to do is dynamically redirect IE6 users to a toned down version of the website without actually using a redirect. If there is another solution for this; I would be happy to hear it.
Determine NodeID from url in HttpModule
I have written a RewriteRule for the UrlRewritingNet module. In this rule i want to append alttemplate=[template] to the request based on the user agent.
[template] itself needs to be determined based on what template would normally be used for the requested page. So I need to determine either the templateid of the requested page, or the nodeid, from where i can obtain the templateid with a bit of querying.
If it helps, what I am trying to do is dynamically redirect IE6 users to a toned down version of the website without actually using a redirect. If there is another solution for this; I would be happy to hear it.
Thanks for any help you can provide!
Tristan
is working on a reply...