Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
How to set up a retro in 2023 (IIS) (Nitro HTML5) - (Part 3)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Simon2910" data-source="post: 476152" data-attributes="member: 89341"><p>Hey there. I guess this is the right path my ISS should go to. Also, I didn't change anything to my web.config or .htaccess.</p><p>[ATTACH=full]14070[/ATTACH]</p><p>My web.config and .htaccess:</p><p></p><p>[CODE]<!--</p><p> Rewrites requires Microsoft URL Rewrite Module for IIS</p><p> Download: https://www.iis.net/downloads/microsoft/url-rewrite</p><p> Debug Help: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules</p><p>--></p><p><configuration></p><p> <system.webServer></p><p> <rewrite></p><p> <rules></p><p> <rule name="Imported Rule 1" stopProcessing="true"></p><p> <match url="^(.*)/$" ignoreCase="false" /></p><p> <conditions></p><p> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /></p><p> </conditions></p><p> <action type="Redirect" redirectType="Permanent" url="/{R:1}" /></p><p> </rule></p><p> <rule name="Imported Rule 2" stopProcessing="true"></p><p> <match url="^" ignoreCase="false" /></p><p> <conditions></p><p> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /></p><p> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /></p><p> </conditions></p><p> <action type="Rewrite" url="index.php" /></p><p> </rule></p><p> <rule name="ReverseProxyInboundRule1" stopProcessing="true"></p><p> <match url="(.*)" /></p><p> <action type="Rewrite" url="http://localhost:8080/{R:1}" /></p><p> <conditions></p><p> <add input="{QUERY_STRING}" pattern="/?figure=(.*)" /></p><p> </conditions></p><p> </rule></p><p> </rules></p><p> <outboundRules></p><p> <preConditions></p><p> <preCondition name="ResponseIsHtml1"></p><p> <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /></p><p> </preCondition></p><p> </preConditions></p><p> </outboundRules></p><p> </rewrite></p><p> <directoryBrowse enabled="false" /></p><p> </system.webServer></p><p></configuration></p><p>[/CODE]</p><p>[CODE]<IfModule mod_rewrite.c></p><p> <IfModule mod_negotiation.c></p><p> Options -MultiViews -Indexes</p><p> </IfModule></p><p></p><p> RewriteEngine On</p><p></p><p> # Handle Authorization Header</p><p> RewriteCond %{HTTP:Authorization} .</p><p> RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]</p><p></p><p> # Redirect Trailing Slashes If Not A Folder...</p><p> RewriteCond %{REQUEST_FILENAME} !-d</p><p> RewriteCond %{REQUEST_URI} (.+)/$</p><p> RewriteRule ^ %1 [L,R=301]</p><p></p><p> # Send Requests To Front Controller...</p><p> RewriteCond %{REQUEST_FILENAME} !-d</p><p> RewriteCond %{REQUEST_FILENAME} !-f</p><p> RewriteRule ^ index.php [L]</p><p></IfModule></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Simon2910, post: 476152, member: 89341"] Hey there. I guess this is the right path my ISS should go to. Also, I didn't change anything to my web.config or .htaccess. [ATTACH type="full" width="258px"]14070[/ATTACH] My web.config and .htaccess: [CODE]<!-- Rewrites requires Microsoft URL Rewrite Module for IIS Download: https://www.iis.net/downloads/microsoft/url-rewrite Debug Help: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules --> <configuration> <system.webServer> <rewrite> <rules> <rule name="Imported Rule 1" stopProcessing="true"> <match url="^(.*)/$" ignoreCase="false" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="/{R:1}" /> </rule> <rule name="Imported Rule 2" stopProcessing="true"> <match url="^" ignoreCase="false" /> <conditions> <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="index.php" /> </rule> <rule name="ReverseProxyInboundRule1" stopProcessing="true"> <match url="(.*)" /> <action type="Rewrite" url="http://localhost:8080/{R:1}" /> <conditions> <add input="{QUERY_STRING}" pattern="/?figure=(.*)" /> </conditions> </rule> </rules> <outboundRules> <preConditions> <preCondition name="ResponseIsHtml1"> <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> </preCondition> </preConditions> </outboundRules> </rewrite> <directoryBrowse enabled="false" /> </system.webServer> </configuration> [/CODE] [CODE]<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Send Requests To Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
How to set up a retro in 2023 (IIS) (Nitro HTML5) - (Part 3)
Top