Web.config Rewrite Help

Discussion in 'Site & Server Administration' started by SearchBliss, Mar 14, 2015.

  1. #1
    I currently have a rewrite rule in my web.config that points all my pages to a mobile domain when using a phone:
    <rule name="MobileRedirect" patternSyntax="ECMAScript" stopProcessing="true">
    <match url=".*" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{HTTP_USER_AGENT}" pattern="iPhone|iPod|blackberry|android...etc" />
    </conditions>
    <action type="Redirect" url="http:// searchbliss.powered .mobi" appendQueryString="false" redirectType="Found" />
    </rule>
    The problem is, every page gets redirected to the mobile homepage. What I need is a to redirect every page to its mobile page. For example:
    searchbliss.com/seo-tools/keyword-tools.htm
    TO
    searchbliss.powered.mobi/?ContentPath=http://www.searchbliss.com/seo-tools/keyword-tools.htm
    And so on...
    None of the regular expression patters and conditions I've tried do the trick. Any ideas? Thanks.
     
    SearchBliss, Mar 14, 2015 IP
  2. SearchBliss

    SearchBliss Well-Known Member

    Messages:
    1,899
    Likes Received:
    70
    Best Answers:
    2
    Trophy Points:
    195
    Digital Goods:
    1
    #2
    Please, any ideas??? It's very frustration.
     
    SearchBliss, Mar 21, 2015 IP