IIS Rewrite Rules

Discussion in 'Installation' started by webmasteresf, Dec 4, 2020.

  1. webmasteresf

    webmasteresf New Member

    Aug 1, 2017
    Hello all,

    While trying to migrate my amember installation from an apache web over to an IIS, I am having trouble getting the rewrite rules to work.
    I have successfully imported all my apache rules over to IIS using the "import" option of URL-Rewrite.

    My main page works fine <hostname>/amember/login but when I try to login I get an 404 error.
    At this point I should note that on my web address that if I change the address to <hostname>/amember/index.php/login I get a somewhat working page without the css though so it looks broken.
    Same thing happens with the rest of the links e.g. signup.

    My url rewrite rules are the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <rule name="Imported Rule 1" stopProcessing="true">
    <match url=".*" ignoreCase="false" />
    <action type="None" />
    <rule name="Imported Rule 2" stopProcessing="true">
    <match url="^public" ignoreCase="false" />
    <action type="Rewrite" url="public.php" />
    <rule name="Imported Rule 3" stopProcessing="true">
    <match url="^js.php" ignoreCase="false" />
    <action type="Rewrite" url="js.php" />
    <rule name="Imported Rule 4">
    <match url="\.(js|ico|gif|jpg|png|css|swf|csv|html|pdf|woff|ttf|eot|svg)$" ignoreCase="false" negate="true" />
    <action type="Rewrite" url="index.php" />

    At this point I am stuck so any help is greatly appreciated!

    Thank you for your time.

Share This Page