Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 31, 201311 yr Hi everybody :smile: I am facing a problem setting up FURLS in my community. I have Managed to get friendly URLS across all the board. Nevertheless whenever i try to access IP Content page (let's say index.html), i get a redirection cycle. Here's my Web.Config file: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpErrors existingResponse="Auto" /> <rewrite> <rules> <rule name="Imported Rule 1" stopProcessing="true"> <match url=".(jpeg|jpg|gif|png)$" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="/public/404.php" /> </rule> <rule name="Imported Rule 2" stopProcessing="true"> <match url="." ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <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" /> </rule> <rule name="WWWless" stopProcessing="true"> <match url="^(.*)$" /> <conditions> <add input="{HTTP_HOST}" pattern="^(www.)(.*)$" /> </conditions> <action type="Redirect" url="http://forumusica.com{PATH_INFO}" /> </rule> <rule name="IP Canonicalization (IP Hit)" enabled="false" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="HTTP_HOST" pattern="xxx.xxx.xxx.xxx (my IP)" /> </conditions> <action type="Redirect" url="http://xxxxxxxxx.com (my address)" /> </rule> <rule name="RedirectUserFriendlyURL1" stopProcessing="true"> <match url="^index.php$" /> <conditions> <add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" /> <add input="{QUERY_STRING}" pattern="^([^=&]+)$" /> </conditions> <action type="Redirect" url="{C:1}" appendQueryString="false" /> </rule> <rule name="RewriteUserFriendlyURL1" stopProcessing="true"> <match url="^([^/]+)/?$" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php?{R:1}" /> </rule> </rules> </rewrite> <httpRedirect enabled="false" httpResponseStatus="Permanent" /> </system.webServer> </configuration> At the FURL features in ACP i have the following definitions: Redirect to new friendly URL format -> YES URL Type -> Query String Use .htaccess mod_rewrite -> NO The problem is, the board works fine, i have managed to get pretty clean URLS, but i if access http://mysite.com/index.php?/page/index.html i get a redirect loop. Can you help me?
January 1, 201411 yr Author Well... figured out that using the Helicon Ape to use the .htaccess in IIS would be the best choice. I set up the ACP defs as following: Redirect to new friendly URL format -> YES URL Type -> Path Info Use .htaccess mod_rewrite -> YES It works really well! Thumbs up for Helicon Ape :thumbsup:
Archived
This topic is now archived and is closed to further replies.