The plugin consists of two components:
- A standard Wordpress plugin.
- An ASP.NET HttpModule.
To install:
- Upload the wp-aspxrewriter folder to the
/wp-content/plugins/ directory
- Upload the URLRewriteModule to your IIS /bin/ directory
- If you are using Wordpress 2.3 or 2.4, modify your source code to contain the additional hook that is implemented at http://trac.wordpress.org/ticket/5969 that will feature in 2.5. Hint: it's in function getpagenumlink.
- Activate the plugin through the 'Plugins' menu in WordPress
- Create your desired permalink structure on Options -> Permalinks, ensuring that it ends with .aspx.
eg. /%year%/%monthnum%/%day%/%post_id%/%postname%.aspx
Recommended bases are:
/word-category
/word-tag
- Navigate to Manage -> ASPX Rewriter in the admin control panel and copy the setup that is shown
Modify or create a web.config file that contains the following under <configuration>:
replacing all the values in <RewriterRules> with the configuration generated by you in stage 6.
Add the following line to
- Add the following to your web.config under :
IIS7:
IIS6:
- Try it out!