Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » Permalinks not working

  • Resolved cablord

    (@cablord)


    Hi,
    I am using the latest ngg (2.0.27) with WP 3.6.1 latest MYSQL and PHP.
    Here is my problem: I have recently changed my location of the site (from a sub-domain to the root domain of my website), The gallery and lightbox seems to work (as I want it to) but sadly when limiting the amount of pictures per page, the second/third and onwards, page does not work.
    I am using the %postname% feature of WP, and I am (sadly) on an IIS server on (again, sadly.. not my site..) godaddy hosting plan.
    In order to get my rewrite module I added a web.config file (that worked perfectly fine on the subdomain, not so well apperantly on the root domain)
    the code of the web.config:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <rewrite>
    		<rules>
    			<rule name="Main Rule" stopProcessing="true">
    				<match url=".*" />
    				<conditions logicalGrouping="MatchAll">
    					<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    					<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    				</conditions>
    				<action type="Rewrite" url="index.php/{R:0}" />
    			</rule>
    		</rules>
    	</rewrite>
      </system.webServer>
    </configuration>

    and the link to page where the problem occures is:
    http://www.orithofshi.com/works
    the first page works, the second and third not so much..
    would be glad for some help 🙂

    Many thanks in advance!

    http://wordpress.org/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
  • Got it working.. apperantly my web.config had a small typo, the new one (if anyone cares to see, or needs it) is:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <rewrite>
    		<rules>
    			<rule name="Main Rule" stopProcessing="true">
    				<match url=".*" />
    				<conditions logicalGrouping="MatchAll">
    					<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    					<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    				</conditions>
    				<action type="Rewrite" url="index.php" />
    			</rule>
    		</rules>
    	</rewrite>
      </system.webServer>
    </configuration>

    I am not quit sure what made the difference (deleting the /{R:0} obviously did the trick), not sure why it started working.. happy it is working 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks not working’ is closed to new replies.