I'm coding a project in Lucee 6 with FW/1 4.3 on W...
# fw1
d
I'm coding a project in Lucee 6 with FW/1 4.3 on Windows Server 2019. Now, I'm trying to get SES working without index.cfm being displayed. Both generateSES and SESOmitIndex are set to true in application.cfc. I also have the IIS Rewrite module installed. Do any of you have a web.config rewrite script or know how to accomplish this with Lucee?
s
Something like this?
Copy code
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<system.web>
		<httpRuntime enableVersionHeader="false" requestPathInvalidCharacters="<,>,*,%,&,\" />
		<pages validateRequest="false" />
	</system.web>
	<system.webServer>
		<rewrite>
			<rules>
				<rule name="RewriteUserFriendlyURL1" enabled="true" patternSyntax="ECMAScript" 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.cfm/{R:1}" />
				</rule>
			</rules>
		</rewrite>
		<defaultDocument>
			<files>
				<clear />
				<add value="index.cfm" />
			</files>
		</defaultDocument>
	</system.webServer>
</configuration>
d
PERFECT!!! Thank you so much! Works like a charm!
👍🏼 1