WordPress.org

Support

Support » How-To and Troubleshooting » Pretty permalink problem with an subdirectory install of WP

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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have to point the correct URL in Database.
    Under setting table I guess. 2 entries have to be modified.

    What do you mean point the correct URL in the database? The options table? I had already modified both the siteurl and the home row, they were already pointing to the subdirectory.

    Also, I believe this is a permalink / rewrite problem. Not a database issue, since everything is working fine without the web.config.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pretty permalink problem with an subdirectory install of WP’ is closed to new replies.
Skip to toolbar