Answers.Body: <p>Thank you for your reply, but I finally figured out the issue. It was a permissions problem on the .htaccess in the cy folder. I deleted the one in there and uploaded a fresh one and it all seemed to slot into place.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-13T00:11:46.963Z
Answers.LastActivityDate: 2018-01-13T00:11:46.963Z
Answers.UserDisplayName: Adam
Answers.Body: <p>Looking at the code you posted looks like you should change <code>/cy_gb/index.php</code> to <code>/cy/index.php</code>. <code>/cy/</code> is the actual subfolder you are requesting here: <code>https://site.domain.net/cy/</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-12T15:49:30.217Z
Answers.LastActivityDate: 2018-01-12T15:49:30.217Z
Answers.UserDisplayName: Mato
Body: <p>I'm in the midst of setting up a bilingual website. English and Welsh.</p>
  
  <p>I have set up the locales in my settings (en and cy_gb)</p>
  
  <p>My directories have the necessary folders for each language, with each containing their respective index.php and htaccess files.</p>
  
  <p>Craft's general config file is changed. Basically I have followed the steps in the Craft docs. My site loads and clicking links loads them fine, but when I add a cy to the URL, I get a Craft 404 page</p>
  
  <p>Is there anything I maybe missing? Do I need to add something to the templates themselves? Any help would be appreciated.</p>
  
  <p><strong>General config</strong></p>
  
  <pre><code>return array(
  // Base site URL
  'siteUrl' =&gt; array(
      'en' =&gt; 'https://site.domain.net/',
      'cy_gb' =&gt; 'https://site.domain.net/cy/'
  
  ), 
  </code></pre>
  
  <p><strong>/cy_gb/index.php</strong></p>
  
  <pre><code>// Path to your craft/ folder
  $craftPath = '../../craft';
  
  //Tell Craft to serve the Welsh content
  define('CRAFT_LOCALE', 'cy_gb');
  </code></pre>
  
  <p><strong>/en/index.php</strong></p>
  
  <pre><code>// Path to your craft/ folder
  $craftPath = '../../craft';
  
  //Tell Craft to serve the English content
  define('CRAFT_LOCALE', 'en');
  </code></pre>
  
Tags: <localization><url><language>
Title: Having trouble with Bilingual URLs
ThreadText: # Having trouble with Bilingual URLs
  
  (Asked by: username_0 on 2018-01-10)
  
  I'm in the midst of setting up a bilingual website. English and Welsh.
  
  I have set up the locales in my settings (en and cy\_gb)
  
  My directories have the necessary folders for each language, with each containing their respective index.php and htaccess files.
  
  Craft's general config file is changed. Basically I have followed the steps in the Craft docs. My site loads and clicking links loads them fine, but when I add a cy to the URL, I get a Craft 404 page
  
  Is there anything I maybe missing? Do I need to add something to the templates themselves? Any help would be appreciated.
  
  **General config**
  
  ```
  return array(
  // Base site URL
  'siteUrl' => array(
      'en' => 'https://site.domain.net/',
      'cy_gb' => 'https://site.domain.net/cy/'
  
  ), 
  
  ```
  
  **/cy\_gb/index.php**
  
  ```
  // Path to your craft/ folder
  $craftPath = '../../craft';
  
  //Tell Craft to serve the Welsh content
  define('CRAFT_LOCALE', 'cy_gb');
  
  ```
  
  **/en/index.php**
  
  ```
  // Path to your craft/ folder
  $craftPath = '../../craft';
  
  //Tell Craft to serve the English content
  define('CRAFT_LOCALE', 'en');
  
  ```
  
  **Tags:** localization, url, language
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2018-01-13. Score: 1
  
  Thank you for your reply, but I finally figured out the issue. It was a permissions problem on the .htaccess in the cy folder. I deleted the one in there and uploaded a fresh one and it all seemed to slot into place.
  
  
  ---
  
  ### Answer by username_1 on 2018-01-12. Score: 1
  
  Looking at the code you posted looks like you should change `/cy_gb/index.php` to `/cy/index.php`. `/cy/` is the actual subfolder you are requesting here: `https://site.domain.net/cy/`
  
  
  ---
  
  