I need someone to assist me to convert this .htaccess to config.webRSS

5 replies

Last post Nov 29, 2019 08:21 AM by Jalpa Panchal

  • I need someone to assist me to convert this .htaccess to config.web

    Nov 11, 2019 11:47 AM|critech2019|LINK

    I need someone to assist me to convert this .htaccess to config.web as soon as possible. Your assistance is always appreciated:

    RewriteEngine on
    RewriteRule ^bybranch/([A-Za-z0-9]+)$ bybranch.php?id=$1
    RewriteRule ^bybranch bybranch.php
    RewriteRule ^bylimit/([A-Za-z0-9]+)$ bylimit.php?id=$1
    RewriteRule ^bylimit bylimit.php
    RewriteRule ^userTrans/([A-Za-z0-9]+)$ userTrans.php?id=$1
    RewriteRule ^userTrans/([A-Za-z0-9-]+)$ userTrans.php?id=$1
    RewriteRule ^userTrans userTrans.php
    RewriteRule ^transLimit/([A-Za-z0-9]+)$ transLimit.php?id=$1
    RewriteRule ^transLimit transLimit.php
    RewriteRule ^deposit/([A-Za-z0-9]+)$ deposit.php?id=$1
    RewriteRule ^deposit deposit.php
    RewriteRule ^withdraw/([A-Za-z0-9]+)$ withdraw.php?id=$1
    RewriteRule ^withdraw withdraw.php
    RewriteRule ^depByStaff/([A-Za-z0-9]+)$ depByStaff.php?id=$1
    RewriteRule ^depByStaff/([A-Za-z0-9-]+)$ depByStaff.php?id=$1
    RewriteRule ^depByStaff depByStaff.php
    RewriteRule ^withByStaff/([A-Za-z0-9]+)$ withByStaff.php?id=$1
    RewriteRule ^withByStaff/([A-Za-z0-9-]+)$ withByStaff.php?id=$1
    RewriteRule ^withByStaff withByStaff.php
    RewriteRule ^withCharges/([A-Za-z0-9]+)$ withCharges.php?id=$1
    RewriteRule ^withCharges withCharges.php
    RewriteRule ^([A-Za-z0-9]+)$ index.php?id=$1
    RewriteRule ^([A-Za-z0-9-]+)$ index.php?id=$1
    RewriteRule ^([A-Za-z0-9_]+)$ index.php?id=$1
    RewriteRule ^([^/.]+)/?$ $1.php

  • Re: I need someone to assist me to convert this .htaccess to config.web

    Nov 12, 2019 06:06 AM|Jalpa Panchal|LINK

    Hi,

    Below is your converted rule in the web.config format:

     <rule name="Imported Rule 1">
                        <match url="^bybranch/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="bybranch.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 2">
                        <match url="^bybranch" ignoreCase="false" />
                        <action type="Rewrite" url="bybranch.php" />
                    </rule>
                    <rule name="Imported Rule 3">
                        <match url="^bylimit/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="bylimit.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 4">
                        <match url="^bylimit" ignoreCase="false" />
                        <action type="Rewrite" url="bylimit.php" />
                    </rule>
                    <rule name="Imported Rule 5">
                        <match url="^userTrans/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="userTrans.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 6">
                        <match url="^userTrans/([A-Za-z0-9-]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="userTrans.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 7">
                        <match url="^userTrans" ignoreCase="false" />
                        <action type="Rewrite" url="userTrans.php" />
                    </rule>
                    <rule name="Imported Rule 8">
                        <match url="^transLimit/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="transLimit.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 9">
                        <match url="^transLimit" ignoreCase="false" />
                        <action type="Rewrite" url="transLimit.php" />
                    </rule>
                    <rule name="Imported Rule 10">
                        <match url="^deposit/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="deposit.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 11">
                        <match url="^deposit" ignoreCase="false" />
                        <action type="Rewrite" url="deposit.php" />
                    </rule>
                    <rule name="Imported Rule 12">
                        <match url="^withdraw/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="withdraw.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 13">
                        <match url="^withdraw" ignoreCase="false" />
                        <action type="Rewrite" url="withdraw.php" />
                    </rule>
                    <rule name="Imported Rule 14">
                        <match url="^depByStaff/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="depByStaff.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 15">
                        <match url="^depByStaff/([A-Za-z0-9-]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="depByStaff.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 16">
                        <match url="^depByStaff" ignoreCase="false" />
                        <action type="Rewrite" url="depByStaff.php" />
                    </rule>
                    <rule name="Imported Rule 17">
                        <match url="^withByStaff/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="withByStaff.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 18">
                        <match url="^withByStaff/([A-Za-z0-9-]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="withByStaff.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 19">
                        <match url="^withByStaff" ignoreCase="false" />
                        <action type="Rewrite" url="withByStaff.php" />
                    </rule>
                    <rule name="Imported Rule 20">
                        <match url="^withCharges/([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="withCharges.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 21">
                        <match url="^withCharges" ignoreCase="false" />
                        <action type="Rewrite" url="withCharges.php" />
                    </rule>
                    <rule name="Imported Rule 22">
                        <match url="^([A-Za-z0-9]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="index.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 23">
                        <match url="^([A-Za-z0-9-]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="index.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 24">
                        <match url="^([A-Za-z0-9_]+)$" ignoreCase="false" />
                        <action type="Rewrite" url="index.php?id={R:1}" appendQueryString="false" />
                    </rule>
                    <rule name="Imported Rule 25">
                        <match url="^([^/.]+)/?$" ignoreCase="false" />
                        <action type="Rewrite" url="{R:1}.php" />
                    </rule>

    You could also convert this rule by your self by the below steps:

    1)open iis manager.

    2)select your site for which you want to import the rule.

    3)then select the URL rewrite module.

    4)click on "import rule" from the action pane.

    5)you could import the .htaccess file or directly paste the rule as shown in the below image then click on apply.

    Note: make sure you installed the iis URL rewrite module.  if you did not installed then install it by using a web platform installer or manually from the below link.

    Web Platform Installer

    URL Rewrite

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: I need someone to assist me to convert this .htaccess to config.web

    Nov 29, 2019 07:06 AM|ann.anderson9898|LINK

    I need someone to assist me to change the URL of web pages developed in PHP. I have created a site for my client to sell their product and all things on the website are completed except one thing that it URLs.

    All the pages showing .php at the end of the URL and this is okay for my client. But the problem is with the product page that is when I call product from the existing file on database it shows the "?" and "=" in the URL which is general url in php and for which my client asking me to change but I am unable to do that. Please if anyone has the solution please assist me this is first product.

    This is my website URL, https://www.huluny.com.

  • Re: I need someone to assist me to convert this .htaccess to config.web

    Nov 29, 2019 07:11 AM|Jalpa Panchal|LINK

    @Ann Anderson I request you to create a new thread for your question. 

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: I need someone to assist me to convert this .htaccess to config.web

    Nov 29, 2019 08:18 AM|ann.anderson9898|LINK

    Thanks, Jalpa Pancha to reply to me but I didn't find the option to make a new thread as this is my new account. Can you please help to sort this.

  • Re: I need someone to assist me to convert this .htaccess to config.web

    Nov 29, 2019 08:21 AM|Jalpa Panchal|LINK

    go to this link: https://forums.iis.net/1041.aspx/1?General and click on start new thread.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.