-
-
Notifications
You must be signed in to change notification settings - Fork 165
IIS server config
Available at: https://www.iis.net/downloads/microsoft/url-rewrite
Stack Overflow answer: https://stackoverflow.com/questions/13921458/how-to-enable-openssl-support-in-xampp#answers-header
To ensure the theme/plugin installing works: https://stackoverflow.com/questions/14987857/what-exactly-is-cacert-pem-for
Download the https://curl.haxx.se/ca/cacert.pem file and save it somewhere.
update php.ini -- add curl.cainfo = "PATH_TO/cacert.pem"
If you have other configs in your web.config, you can simply copy/paste the specific <rules>
and not the whole block of code.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="rule block browse database">
<match url="database.js" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="/-" />
</rule>
<rule name="rule block browse cache">
<match url="cache.json" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="/-" />
</rule>
<rule name="Allow plugin" stopProcessing="true">
<match url="plugins/" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow jpg" stopProcessing="true">
<match url=".jpg" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow png" stopProcessing="true">
<match url=".png" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow gif" stopProcessing="true">
<match url=".gif" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow txt" stopProcessing="true">
<match url=".txt" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow doc" stopProcessing="true">
<match url=".doc" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow pdf" stopProcessing="true">
<match url=".pdf" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow zip" stopProcessing="true">
<match url=".zip" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow rar" stopProcessing="true">
<match url=".rar" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="Allow svg" stopProcessing="true">
<match url=".svg" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="None" />
</rule>
<rule name="rule 1S" stopProcessing="true">
<match url="^(.+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="/index.php?page={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
NOTE: The code above is required to deny access to database.js, cache.json and create clean URL's which are SEO friendly.
It also allows for some formats to be uploaded.
The code above replicates Apache's htaccess functionality with the power of your IIS web.config (server config file). Since IIS doesn't have the "traditional" htaccess file, this is necessary to make WonderCMS work properly.
Still need help?
- Ask a question or make a request in the community.
- Official website
Intro
- Home
- Demo
- Download
- One step install
- Requirements
- 5 file structure
- List of hooks
- Included libraries
- Create theme in 8 easy steps
- Create a plugin
- Custom modules
- Translations
- All security features described
Basic how to's
- Backup all files
- Change default login URL
- Change default password
- Create custom page template
- Create new editable areas or editable blocks
- Edit 404 page
- Get data from database
- Set data to database
- Hide page from menu
- Caddy web server config
- IIS server config
- NGINX server config
- Login
- Recover login URL
- Reset password
- Restore backup
- Update
- PHP built in server
Themes
- Create theme in 8 easy steps
- Add favicon
- Theme tags
- Update theme to work with WonderCMS 2.0.0
- Update theme to work with WonderCMS 3.0.0
- Share your themes with Custom modules
Plugins
- Quick intro on creating plugins and List of hooks
- Share your plugin with simply with Custom modules
Security
- All security features described
- Add SRI tags to your theme libraries
- Always redirect to https and www
- Additional security configuration(s)
- Add SRI tags to your theme libraries
- Better security mode (HTTPS and other features)
Features description
- One click update
- Optional: functions.php file
- Default database.js
- Allowed extensions file types for uploads
- Login URL doesn't work - 404
- 500 internal server error
- Persistent "New WonderCMS update available" message
- URLs mailformed on Windows IIS
- Other errors