DNN redirect mobile with dynamic article ID -


I have been using DN77 for my main site domain.com and m.domain.com I am The main site uses DN77, but uses mobile MVC. I'm using fifty-fifth to redirect my mobile site. If I have 100 articles and to see a particular article, know this: domain.com/default.aspx?id=n (where n = 1-100) If someone clicks on this link on any mobile device then Takes them to the mobile site: m.domain.com Because I have set it in the web config file, there is a way of config so that the site will take you to m.domain.com/default.aspx?id=n? I've heard that you can set the redirect rule in DNN but I'm not sure that it can solve the problem. If you know the answer, please help a lot.

Sorry, it's a bit difficult to understand your question is. But I think what you want to do is to redirect mobile devices to the appropriate pages? If so, then:

In the block of code that is used to find out whether the device's request is mobile or not, you can implement the following code:

  Response.BufferOutput = True; If requested (Brokers ["IsMobile"] == "true") {string mobile_url = "m" + request. Url abbreviated uriy; Response.Redirect (mobile_url); }   

The requested URL should be "domain.com/default.aspx?id=n", add "m". The URL in front of it becomes "m.domain.com/default.aspx?id=n" and then issues a redirect to the mobile URL.

Note: One different version is not suitable for mobile devices because the search engines consider it duplicate content.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -