<p>What you're asking for is fine. Create a subfolder within your public directory for each locale with it's own index.php and define the new path to craft/ and the locale. For example, within public_html/fr/index.php you might have:</p>

<pre><code>// Path to your craft/ folder
$craftPath = '../../craft';

// Tell Craft to serve the FRENCH content
define('CRAFT_LOCALE', 'fr');
</code></pre>

<p>With the single, you set the slug yourself within the section's settings (one slug for each locale that section is available to).</p>

CC BY-SA 3.0
2017-03-03T13:28:46.327Z
Hi, thank you for your reply! I had already configured the language folders, so that wasn't the issue :) I guess I forgot to configure the single's slug in multiple languages, like you mentioned in the last paragraph of your comment. Thanks!
mdmngz
CC BY-SA 3.0
2017-03-03T13:37:25.957Z
Easy mistake to make.
Clive Portman
CC BY-SA 3.0
2017-03-03T12:53:23.783Z
2017-03-03T12:53:23.783Z
Clive Portman
<p>How can I be able to have a single section page (so that clients can't create another one of this) that only needs 1 index.html template across different languages AND be accessible through following different slugs:</p>

<ul>
<li>x.dev/muziektoerisme</li>
<li>x.dev/fr/tourisme-musical/</li>
<li>x.dev/en/music-tourism/</li>
</ul>

<p>I currently have a setup similar to this one: <a href="https://craftcms.stackexchange.com/questions/1467/add-home-page-to-a-structure">Add home page to a structure?</a>, which is a structure section 'Pages' with my custom page entry type 'musictourism' under 'craft/templates/_pages/_types/' (so 'musictourism.html' sits in this folder)
This works great, except for the fact that users are able to recreate a page of this entry type, which I don't want.</p>

<p>Does my question make any sense? Or am I missing something fundamental here? :) I'm new to Craft by the way.</p>

<p>Thanks in advance!</p>

<slug>
Possible to have a single entry page with multilingual slugs and only one index.html?
# Possible to have a single entry page with multilingual slugs and only one index.html?

(Asked by: username_0 on 2017-03-03)

How can I be able to have a single section page (so that clients can't create another one of this) that only needs 1 index.html template across different languages AND be accessible through following different slugs:

* x.dev/muziektoerisme
* x.dev/fr/tourisme-musical/
* x.dev/en/music-tourism/

I currently have a setup similar to this one: [Add home page to a structure?](https://craftcms.stackexchange.com/questions/1467/add-home-page-to-a-structure), which is a structure section 'Pages' with my custom page entry type 'musictourism' under 'craft/templates/\_pages/\_types/' (so 'musictourism.html' sits in this folder)
This works great, except for the fact that users are able to recreate a page of this entry type, which I don't want.

Does my question make any sense? Or am I missing something fundamental here? :) I'm new to Craft by the way.

Thanks in advance!

**Tags:** slug

---

## 1 answers

### Answer by username_1 on 2017-03-03. Score: 1 | Accepted answer

What you're asking for is fine. Create a subfolder within your public directory for each locale with it's own index.php and define the new path to craft/ and the locale. For example, within public_html/fr/index.php you might have:
// Path to your craft/ folder
$craftPath = '../../craft';

// Tell Craft to serve the FRENCH content
define('CRAFT_LOCALE', 'fr');

With the single, you set the slug yourself within the section's settings (one slug for each locale that section is available to).

> **Comments:**
> **username_0**: Hi, thank you for your reply! I had already configured the language folders, so that wasn't the issue :) I guess I forgot to configure the single's slug in multiple languages, like you mentioned in the last paragraph of your comment. Thanks!  
> **username_1**: Easy mistake to make.  

---

