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

Two domain names pointing to same server & code reusability

Explorer ,
Mar 10, 2008 Mar 10, 2008

Copy link to clipboard

Copied

We have two domain names pointing to same server & need to reuse lot of code.

What will be better approach have two sub domains(folder) under main domain like folder1 (- domain1)

and folder2-(domain 2)

both folders will have exact same sub folders

/folder1/tags /folder2/tags
folder1/pages/ folder2/pages/

folder1/documents/pdfs/ folder2/documents/pdfs/

OR
under main folder subfolders like
/AllTags/Folder1
& Alltags have another folder Folder2/

With approach no 1 I will have to use lot of nested includes like <cfinclude template="../../../f1/include.cfm"


thank you


TOPICS
Advanced techniques

Views

253

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
LEGEND ,
Mar 10, 2008 Mar 10, 2008

Copy link to clipboard

Copied

If you are going to use cfincludes, put a directory for it directly under your webroot. Your code then becomes

<cfinclude template="/ThatDirectory/etc">

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
Participant ,
Mar 10, 2008 Mar 10, 2008

Copy link to clipboard

Copied

LATEST
You can also use ISAPI rewrites to mask folders

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