When attempting to enable permalinks in Wordprss, you may come across the following message at the top of the settings-permalinks page after selecting a common settings style:
You should update your web.config now
Followed by this message below the ‘Save Changes’ button:
If the root directory of your site were writable, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your
web.configfile. Create a new file, calledweb.configin the root directory of your site. Click in the field and press CTRL + a to select all. Then insert this code into theweb.configfile.
All this means is that the root directory for your site is not writable, and WordPress has just attempted unsuccessfully to create the new file called web.config. This is a good thing, and means that the root folder permissions on your server are at a more secure setting.
To get permalinks working, follow the steps outlined above or:
- Open notepad (windows)
- Copy and paste the code block from WordPress into the new notepad document
- Click File -> Save
- Select ‘All Files (*.*) from the Save as type drop-down menu
- Type in ‘web.config’ and remove the .txt
- FTP this file to the root folder
One last thing, click on ‘Save Changes’ in WordPress after selecting the type of permalinks you want. A Second message will appear:
If your
web.configfile were writable, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in yourweb.configfile. Click in the field and press CTRL + a to select all. Then insert this rule inside of the/<configuration>/<system.webServer>/<rewrite>/<rules>element inweb.configfile.
Ignore this message, permalinks will already be working. Visit you blog and click on a post heading to see the permalinks in action!
This is current as of WordPress 3.3.1.
