Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > directory structure

directory structure
Thread Tools
Dedicated MacNNer
Join Date: Aug 2002
Location: Chicago
Status: Offline
Reply With Quote
Dec 22, 2003, 12:30 PM
 
I知 starting work on a web site that will have content in English, Italian and Spanish.
But I知 concerned with the directory structure to separate the content in the 3 languages.

Question: Should it be

name.com/en/
name.com/es/
name.com/it/

or

name.com/eng/
name.com/esp/
name.com/itl/

The separation structure is for language not country. I have the correct Meta Tag for HTLM docs.

<META HTTP-EQUIV="Content-Language" content="EN-US">
<META HTTP-EQUIV="Content-Language" content="ES">
<META HTTP-EQUIV="Content-Language" content="IT">


Any input would be greatly appreciated, thanks
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Dec 22, 2003, 02:07 PM
 
I would actually put everything into one directory, and then use content-negotiation to get the proper content. Somethink like this:


document root:
&nbsp;&nbsp;&nbsp;contentFolder --- whatever you want to call it
&nbsp;&nbsp;&nbsp;en --- this is a folder with a .htaccess over-riding the content negotiation to english and a sym-link to the contentFolder
&nbsp;&nbsp;&nbsp;es --- this is a folder with a .htaccess over-riding the content negotiation to spanish and a sym-link to the contentFolder
&nbsp;&nbsp;&nbsp;it --- this is a folder with a .htaccess over-riding the content negotiation to itlian and a sym-link to the contentFolder

Take a look at apache.org's documentation on content negotiation and then stick to the usual codes. The your file name would look like:

name.en.html
name.it.html

etc... This makes handling multi-language content much more manageable (especially failover).
     
nica  (op)
Dedicated MacNNer
Join Date: Aug 2002
Location: Chicago
Status: Offline
Reply With Quote
Dec 22, 2003, 02:41 PM
 
Interesting approach larkost sounds interesting. I知 going to look into it and read more.

Thanks for the link and reply.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:35 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2