We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49394
    • 2 Posts
    Hello, there might be solution already to my problem, but couldnt find it/specify my problem.
    I got MODX Revolution installed to clients own server (windows server), plan is to run multiple languages.

    For multilingual pages I used Babel and had no problems copying old context naming it to new language and adding custom values.
    (installation http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html )

    It seemed it worked like a charm, my index-page worked and few other pages, but inspecting pages closer, most of the pages were plank.
    I shows correct url and works on couple of pages, but in chrome/firefox it shows blank and ie shows http 500 internal server error.

    As for error log, there isnt anything.

    I'm bit green on MODX Revo and Babel, and for this being my clients page I cant give you proper example.
    But can provide some examples, if needed.

    My own guess would be
    1. Some memory issue (hundred of pages with only 2 languages atm), but dont really know how to start examine that. And I dont think modx restricts that.
    2. Or .html rewrite problem, because pages with .html-end doesnt work. (But original context works with no prob, so doubt this is the reason)

    Hopefully someone has experience from similar.

    -Mikmaister


    Added web.config for IIS below so if somebody sees immeadiately problem there.
    <rewrite>
                <rules>
     <clear />
    				<rule name="Redirect Non WWW to WWW" enabled="true" stopProcessing="true">
    					<match url="(.*)" />
    					<conditions>
    						<add input="{HTTP_HOST}" negate="true" pattern="^www\.([.a-zA-Z0-9]+)$" />
    					</conditions>
    					<action type="Redirect" url="http://www.{HTTP_HOST}/{R:0}" appendQueryString="true" redirectType="Permanent" />
    				</rule>
                    <rule name="ModX IIS7 Rule 1 (By Simon Fraser)" stopProcessing="true">
                        <match url=".*" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAll">
                            <add input="{HTTP_USER_AGENT}" pattern="^.*internal\ dummy\ connection.*$" />
                        </conditions>
                        <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
                    </rule>
                    <rule name="ModX IIS7 Rule 2 (By Simon Fraser)" stopProcessing="true">
                        <match url="^(manager|assets|images|pdf|files)" ignoreCase="false" />
                        <action type="None" />
                    </rule>
                   <rule name="rule 2A" stopProcessing="true">
    	<match url="^(en|ru|ch)/assets(.*)$"  />
    <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
    	<action type="Rewrite" url="/assets{R:2}"  appendQueryString="true" />
    </rule>
    <rule name="rule 2S" stopProcessing="true">
    	<match url="^(en|ru|ch)/images(.*)$"  />
    <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
    	<action type="Rewrite" url="/images{R:2}"  appendQueryString="true" />
    </rule>
    <rule name="rule 2E" stopProcessing="true">
    	<match url="^(en|ru|ch)/files(.*)$"  />
    <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
    	<action type="Rewrite" url="/files{R:2}"  appendQueryString="true" />
    </rule>
    <rule name="rule 2R" stopProcessing="true">
    	<match url="^(en|ru|ch)/pdf(.*)$"  />
    <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
    	<action type="Rewrite" url="/pdf{R:2}"  appendQueryString="true" />
    </rule>
    <rule name="rule 3S" stopProcessing="true">
    	<match url="^(en|ru|ch)?/?(.*)$"  />
    <conditions>
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              </conditions>
    <action type="Rewrite" url="/index.php?cultureKey={R:1}&q={R:2}"  appendQueryString="true" />
    </rule>
                </rules>
            </rewrite>
    [ed. note: mikmaister last edited this post 11 years, 10 months ago.]