Pretty permalink problem with an subdirectory install of WP
-
I have a WordPress installation from a client on a subdirectory on a Windows Server.
The normal installation has pretty permalinks, and they are working just fine. And now we are gonna work fix the old version up, thats why I put a duplicate of the old WP installation with working pretty permalinks into a subdirectory. I have a web.config file in the subdirectory with the same code as the normal web.config has. But all links on the subdirectory gets a 500 server error.
The server is the following Windows server(Got it from Phpinfo):
Windows NT DNP-IIS23 6.1 build 7601
Well I think it is IIS 6+, but I am not sure. Since I am not used to working with Windows servers.
This is the following code in original web.config file:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="wordpress" patternSyntax="Wildcard"> <match url="*"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="q/index.php"/> </rule> </rules> </rewrite> </system.webServer> </configuration>
I use the same web.config code in the subdirectory, but it is not working. Anyone that can help me out or point me in the right direction? I should also say that, the installation is working fine without the web.config file in the subdirectory. But get a 404-error on all subpages.
- The topic ‘Pretty permalink problem with an subdirectory install of WP’ is closed to new replies.