From fde470ec8811e71b8497527ed7f440fed109afd2 Mon Sep 17 00:00:00 2001 From: Tom Homer Date: Thu, 20 Oct 2016 10:26:00 -0400 Subject: [PATCH] Added IIS info for URL Routing --- public_html/docs/english/config.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/public_html/docs/english/config.html b/public_html/docs/english/config.html index 1ff9ab75f..ad654c718 100644 --- a/public_html/docs/english/config.html +++ b/public_html/docs/english/config.html @@ -2188,6 +2188,33 @@

URL Routing

$_SERVER['PATH_INFO'] variable. Please try it out before you go public with your site.

Advanced feature: If you use IIS as a Web server and want to remove "index.php" from URLs you access, you will have to create the appropriate web.config file in the same directory as lib-common.php, with the proper redirects defined.

+
    +
  1. Install the rewrite module on your web server if it has not been already (use the Microsoft Web Platform Installer for this).
  2. +
  3. Create a file named "web.config" in the top of the public directory of your + Geeklog installation (where lib-common.php is located) and add the following lines. If you have installed Geeklog in a subdirectory of the document root, you may need to modify the code below.
    +
    +        <configuration>
    +            <system.webServer>
    +                <rewrite>
    +                    <rules>
    +                        <rule name="Imported Rule 1" stopProcessing="true">
    +                            <match url="^(.*)$" ignoreCase="false" />
    +                            <conditions>
    +                                <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
    +                                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
    +                            </conditions>
    +                            <action type="Rewrite" url="/index.php/{R:1}" />
    +                        </rule>
    +                    </rules>
    +                </rewrite>
    +            </system.webServer>
    +        </configuration>
    +    
    +
  4. + Finally, log in as admin and go to the Configuration screen, and set URL Routing + to 'Enabled (without "index.php")'. +
  5. +

Advanced feature: If you use Apache as a Web server and want to remove "index.php" from URLs you access, you have to do the following things. Be warned! Unless you are familiar with Web server configurations, you might as well not use this feature.