Ramsey Posted July 11, 2012 Share Posted July 11, 2012 Does anyone have a web.config file for WHMCS? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted July 11, 2012 Share Posted July 11, 2012 What's a web.config file? 0 Quote Link to comment Share on other sites More sharing options...
raddo Posted July 11, 2012 Share Posted July 11, 2012 web.config files are for .net sites, they hold connection strings and app settings etc. Are you hosting whmcs on a windows server? 0 Quote Link to comment Share on other sites More sharing options...
yorkukhosting Posted July 12, 2012 Share Posted July 12, 2012 If you want if for the URL Rewrite rules give the following a try: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Rule 1" stopProcessing="true"> <match url="^announcements/([0-9]+)/[a-z0-9_-]+\.html$" /> <action type="Rewrite" url="./announcements.php?id={R:1}" appendQueryString="false" /> </rule> <rule name="Rule 2" stopProcessing="true"> <match url="^announcements$" /> <action type="Rewrite" url="./announcements.php" /> </rule> <rule name="Rule 3" stopProcessing="true"> <match url="^downloads/([0-9]+)/([^/]*)$" /> <action type="Rewrite" url="./downloads.php?action=displaycat&catid={R:1}" appendQueryString="false" /> </rule> <rule name="Rule 4" stopProcessing="true"> <match url="^downloads$" /> <action type="Rewrite" url="./downloads.php" /> </rule> <rule name="Rule 5" stopProcessing="true"> <match url="^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$" /> <action type="Rewrite" url="./knowledgebase.php?action=displayarticle&id={R:1}" appendQueryString="false" /> </rule> <rule name="Rule 6" stopProcessing="true"> <match url="^knowledgebase/([0-9]+)/([^/]*)$" /> <action type="Rewrite" url="./knowledgebase.php?action=displaycat&catid={R:1}" appendQueryString="false" /> </rule> <rule name="Rule 7" stopProcessing="true"> <match url="^knowledgebase$" /> <action type="Rewrite" url="./knowledgebase.php" /> </rule> </rules> </rewrite> </system.webServer> </configuration> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.