Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SETUP] Folder structure break IIS web.config #788

Closed
razuro opened this issue Feb 1, 2016 · 4 comments
Closed

[SETUP] Folder structure break IIS web.config #788

razuro opened this issue Feb 1, 2016 · 4 comments

Comments

@razuro
Copy link

razuro commented Feb 1, 2016

Hi,

Although I believe this is not supported in IIS, I have manage to use version 2.1.1 in IIS using a custom web.config file (.htaccess for IIS). However, the folder structure in version 3 onwards break the web.config.

The main page will load OK, but other page will only point to public. For example, a contact page will have URL like this: http:https://localhost/huge/public/contact/index

Appreciate anyone that's able to use version 3 with IIS to point me to the right direction.

Thank you very much.

@razuro
Copy link
Author

razuro commented Feb 1, 2016

I've found the correct web.config. Only one is needed in the root folder. Don't put any web.config in your public folder.

IIS web.config

<?xml version="1.0" encoding="UTF-8"?><configuration>
    <system.webServer>
        <rewrite>
            <rules>

                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="public/index.php?url={R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Hello @panique, is it possible to put this as reference for those using IIS? Thank you very much!

@razuro razuro closed this as completed Feb 1, 2016
@razuro
Copy link
Author

razuro commented Feb 1, 2016

@panique
Copy link
Owner

panique commented Feb 1, 2016

Hi, sure, I'll add it in the next days ! Thanks for the nice config :)

@panique panique reopened this Feb 1, 2016
@panique panique changed the title Folder structure break IIS web.config [SETUP] Folder structure break IIS web.config Dec 4, 2016
@panique
Copy link
Owner

panique commented Dec 4, 2016

Big thanks, it's now merged and visible in the readme (it will take some minutes until it's visible on github)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants