WordPress Permalinks On Windows

As we discussed on this wordpress permalinks configuration there’re several methods to configure friendly URLs for wordpress site. Here’re some issues I would like to discuss.

On windows server 2008 with URL rewrite mode configured environment, you can enable permalinks the same as you did from linux server and it will auto generate the URL rewrite rules from web.config in your website root. The content is the following:

<?xml version="1.0"

Share

Protect Website Folders via Web.config

If you would like to configure password protect for some of your website folders you can do it via web.config directly instead disable the anonymous access on IIS. Just make a new web.config in that folder and paste into the following

<configuration>
  <system.webServer>
    <security>
      <authorization>
        <add accessType="Deny" users="?"

Share

Remove URL Trailing Slash

URLs such as the following are both working

http://www.domain.com/folder

http://www.domain.com/folder/

However they’re recognized as different addresses in search engine. to make your website more seo friendly it’s better to make the address unique. Here’re the rules you can add to .htaccess or web.config

If you’re using linux server and .htaccess is supported, you can add the following code to remove url trailing slash.

#remove trailing

Share