Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Working on a ASP.NET host with Web.Config instead of .htaccess

edited September 2010 in Vanilla 2.0 - 2.8
I got this working on a ASP.NET host. They allow you to use PHP files on there. I swapped out the .htaccess for a Web.Config file which did the same thing. It works perfectly!!!

You need the latest version 2.0.6 to do this!

If your interested in how it was done, let me know. Its really simple!


  • Hi Sim2K.

    I am quite interested on the web.config file. So if you could share with me your web.config I would appreciate it. Thanks.
  • ToddTodd Chief Product Officer Vanilla Staff
    Can you post the relevant lines of the config right here?
  • edited October 2010
    <?xml version="1.0" encoding="UTF-8"?>
    < configuration>
    < system.webServer>

    < rewrite>
    < rules>
    < rule name="Rewrite LINK" stopProcessing="true">
    < match url="^(.*)$" ignoreCase="false" />
    < conditions>
    < add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
    < add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
    < /conditions>
    < action type="Rewrite" url="index.php\?p={R:1}" appendQueryString="true" />
    < /rule>
    < /rules>
    < /rewrite>
    < directoryBrowse enabled="true" />
    < defaultDocument>
    < files>
    < clear />
    < add value="index.php" />
    < add value="Default.htm" />
    < add value="Default.asp" />
    < add value="index.htm" />
    < add value="Default.aspx" />
    < add value="index.html" />
    < add value="" />
    < add value="default.html" />
    < /files>
    < /defaultDocument>
    < /system.webServer>
    < /configuration>
  • I've had to add 2 spaces after the < so it will show. Might need to delete it

    Also search through all the source code on every single page for " .htaccess " and comment out the need for it. There are about 3 or 4 pages that check for it. Take out the checks for it. If you need more help on that, let me know.

  • [root@localhost vanilla]# grep -lR htaccess *
Sign In or Register to comment.