need help Converting web.config to .htaccess

Hello everyone...

I need help converting my web.config file into a .htaccess file.

I hope we can find some volenteers...

Here is contents of the web.config file....
Please help....

..DA for R
-------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <outboundRules>
                <clear />
                <rule name="www.bananapages.net virtual path rewrite">
                    <match serverVariable="RESPONSE_LOCATION" pattern="^(https?\://www\.bananapages\.net)/bp/(.+/)$" />
                    <conditions>
                        <add input="{RESPONSE_STATUS}" pattern="^301$" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" value="{R:1}/{R:2}" />
                </rule>
                <rule name="bananapages.net virtual path rewrite">
                    <match serverVariable="RESPONSE_LOCATION" pattern="^(https?\://bananapages\.net)/bp/(.+/)$" />
                    <conditions>
                        <add input="{RESPONSE_STATUS}" pattern="^301$" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" value="{R:1}/{R:2}" />
                </rule>
                <rule name="Rewrite" preCondition="IsHTML" enabled="true" patternSyntax="Wildcard">
                    <match filterByTags="A, Area, Img, Input, Link, Script" pattern="*/blog/*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
                    <action type="Rewrite" value="{R:1}/{R:2}" />
                </rule>
                <rule name="rewrite2" preCondition="IsHTML" enabled="true" patternSyntax="Wildcard">
                    <match filterByTags="A, Script" pattern="*%2fblog*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
                    <action type="Rewrite" value="{R:1}{R:2}" />
                </rule>
            <rule name="Rewritebp1" preCondition="IsHTML" enabled="true" patternSyntax="Wildcard">
                    <match filterByTags="A, Area, Base, Form, Img, Input, Link, Script" pattern="*/bp/*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
                    <action type="Rewrite" value="{R:1}/{R:2}" />
                </rule>
                <rule name="rewritebp2" preCondition="IsHTML" enabled="true" patternSyntax="Wildcard">
                    <match filterByTags="A, Script" pattern="*%2fbp*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
                    <action type="Rewrite" value="{R:1}{R:2}" />
                </rule>
                <rule name="Rewrite3" preCondition="IsHTML" enabled="true" patternSyntax="Wildcard">
                    <match filterByTags="CustomTags" customTags="javascripts" pattern="*/blog/*" />
                    <action type="Rewrite" value="{R:1}/{R:2}" />
                </rule>
                <rule name="Rewrite Location Header" preCondition="IsRedirection" patternSyntax="Wildcard">
                    <match serverVariable="RESPONSE_Location" pattern="*/blog/*" />
                    <action type="Rewrite" value="{R:1}/{R:2}" />
                </rule>
                <preConditions>
                    <preCondition name="IsHTML" patternSyntax="Wildcard">
                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="*text/html*" />
                    </preCondition>
                    <preCondition name="IsRedirection" patternSyntax="Wildcard">
                        <add input="{RESPONSE_STATUS}" pattern="302" />
                    </preCondition>
                </preConditions>
                <customTags>
                    <tags name="javascripts">
                        <tag name="input" attribute="onkeypress" />
                        <tag name="input" attribute="onclick" />
                  
                </tags>
                </customTags>
            </outboundRules>
            <rules>
                <rule platformId="wdpVpr" name="www.bananapages.net virtual path rewrite" stopProcessing="true">
                    <match url="^.*$" ignoreCase="false" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="^www\.bananapages\.net$" />
                    </conditions>
                    <action type="Rewrite" url="/bp/{R:0}" appendQueryString="true" />
                </rule>
                <rule platformId="wdpVpr" name="bananapages.net virtual path rewrite" stopProcessing="true">
                    <match url="^.*$" ignoreCase="false" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="^bananapages\.net$" />
                    </conditions>
                    <action type="Rewrite" url="/bp/{R:0}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
        <urlCompression doStaticCompression="false" />
    </system.webServer>
</configuration>
rpajak1IT Consultant Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

skullnobrainsCommented:
RewriteEngine On
RewriteRule https?\://www\.bananapages\.net)/bp/(.+/)$ $1/$2
RewriteRule https?\://bananapages\.net)/bp/(.+/)$ $1/$2
would take care of the first 2

i don't know of an equivalent for "match filterByTags" in apache nor does it feature ways to add headers in this way (but the added http_host headers don't seem very useful)

could you describe the functionalities you want rather than trying to convert file formats for software with little in common feature-wise ?
0
Steve BinkCommented:
In Apache mod_rewrite, there is no equivalent functionality for the IIS <outboundRules> section.  mod_rewrite handles modifying *requests*, usually to redirect them to alternate locations based on specific conditions.  It cannot modify the response at all, except in the context of a general override (301 redirection, forbidden, etc.)

Generally, I recommend handling such modifications in your code.  If you do have a need for post-processing on your response, you'll need to look at output filters and headers.  These can certainly work in conjunction with some mod_rewrite functionality (e.g., the [E] flag), but they are separate mechanisms.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve BinkCommented:
Why did you present a "C" grade?
0
Steve BinkCommented:
Accept  http:#a39550892.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.