• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

force url

New Here ,
Oct 03, 2007 Oct 03, 2007

Copy link to clipboard

Copied

Hi,

I have set up a site that needs to look in a folder... if someone types the domain for ex www.domain.com.au

i need it to force the domain to be www.domain.com.au/folder

is that something i can set up in the application.cfm file?
TOPICS
Advanced techniques

Views

222

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 04, 2007 Oct 04, 2007

Copy link to clipboard

Copied

LATEST
You could try something link:
<cfif CGI.Path_Info DOES NOT CONTAIN "folder">
<cflocation url="www.domain.com.au/folder">
</cfif>

or you could use IIS if you have access to the server (and it is using Windows). Not sure how Linux works.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation