Answers.Body: <p>Found it (at last). The thing was that the . before .htaccess was removed when copying the files to the /it/ folder on OSx</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-21T08:09:07.803Z
Answers.LastActivityDate: 2015-07-21T08:09:07.803Z
Answers.UserDisplayName: Tom Suter
Body: <p>I get a 404 page when I try to open an Italian page. Homepage <code>www.domain.com/it/</code> works, but when I proceed to <code>www.domain.com/it/assistenza-e-supporto</code> it gives me a 404. </p>
  
  <p>English version works. Any idea where I should look to fix this?</p>
  
  <p>I've followed the steps as desribed here: 
  <a href="https://craftcms.com/docs/localization-guide" rel="nofollow noreferrer">https://craftcms.com/docs/localization-guide</a></p>
  
  <p>Config looks like this:</p>
  
  <pre class="lang-php prettyprint-override"><code>return array(
      'cpTrigger' =&gt; 'admin',
      'omitScriptNameInUrls' =&gt; true,
      'devMode' =&gt; true,
      'siteUrl' =&gt; array(
          'en_US' =&gt; 'http://local.crafttraining.craft.dev/',
          'es' =&gt; 'http://local.crafttraining.craft.dev/es/',
          'it' =&gt; 'http://local.crafttraining.craft.dev/it/',
      ),
  );
  </code></pre>
  
  <p>Update:
  After a day of trying and searching I found out that once I remove the omitScriptNameInUrls from the general.php it works fine, but I would like to have nice url's. </p>
  
  <p>.htaccess looks like this:</p>
  
  <pre class="lang-bsh prettyprint-override"><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  
  # Send would-be 404 requests to Craft
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
  RewriteRule (.+) index.php?p=$1 [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>What am I doing wrong. Thanks for helping me out with this.  </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-15T19:18:49.373Z
Comments.Text: You sure you've enabled Italian for section you're trying to view?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-16T06:17:14.667Z
Comments.Text: Hi Brad, yep, did that. The strange thing is that the italian homepage works perfectly on: http://local.crafttraining.craft.dev/it/. 
  
  In this file I have 
  `{% set pages = craft.entries.section('contentPages').level(1) %}.
   {% for page in pages %}
   <li>{{ page.getLink() }}</li>
  {% endfor %}`
  
  This generates the links to the italian pages. Eg: http://local.crafttraining.craft.dev/it/assistenza-e-supporto.
  
  Now, when I click that link, I get a 404 page. I checked the docs once more, but cannot find what I am doing wrong.
Comments.UserDisplayName: Tom Suter
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-16T18:04:21.353Z
Comments.Text: Does your server support PATH_INFO? http://buildwithcraft.com/help/enable-path-info
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-17T12:26:53.780Z
Comments.Text: Hi Brad, your answer helpt me a littlebit further. This works:    'usePathInfo' => true,
      'omitScriptNameInUrls' => false, so url's are with index.php: http://craft.dev/index.php/it/news-it/2015/we-just-installed-craft. If I set omitScriptNameInUrls to true it doesn't work anymore. 404's all over the place.
Comments.UserDisplayName: Tom Suter
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-20T13:17:25.370Z
Comments.Text: Do you have the correct RewriteBase in `it/.htaccess`? I think I saw that causing 404s somewhere.
Comments.UserDisplayName: megatrond
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-17T09:51:31.553Z
Comments.Text: This could be caused by a RewriteBase problem indeed, check this answer here: https://craftcms.stackexchange.com/a/25712/5948
Comments.UserDisplayName: Tobias S.
Tags: <localization><404>
Title: 404 when opening a localized page
ThreadText: # 404 when opening a localized page
  
  (Asked by: username_0 on 2015-07-15)
  
  I get a 404 page when I try to open an Italian page. Homepage `www.domain.com/it/` works, but when I proceed to `www.domain.com/it/assistenza-e-supporto` it gives me a 404.
  
  English version works. Any idea where I should look to fix this?
  
  I've followed the steps as desribed here:
  <https://craftcms.com/docs/localization-guide>
  
  Config looks like this:
  
  ```php
  return array(
      'cpTrigger' => 'admin',
      'omitScriptNameInUrls' => true,
      'devMode' => true,
      'siteUrl' => array(
          'en_US' => 'http://local.crafttraining.craft.dev/',
          'es' => 'http://local.crafttraining.craft.dev/es/',
          'it' => 'http://local.crafttraining.craft.dev/it/',
      ),
  );
  
  ```
  
  Update:
  After a day of trying and searching I found out that once I remove the omitScriptNameInUrls from the general.php it works fine, but I would like to have nice url's.
  
  .htaccess looks like this:
  
  ```bsh
  <IfModule mod_rewrite.c>
  RewriteEngine On
  
  # Send would-be 404 requests to Craft
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
  RewriteRule (.+) index.php?p=$1 [QSA,L]
  </IfModule>
  
  ```
  
  What am I doing wrong. Thanks for helping me out with this.
  
  **Tags:** localization, 404
  
  > **Comments:**
  > **username_1**: You sure you've enabled Italian for section you're trying to view?  
  > **username_0**: Hi username_1, yep, did that. The strange thing is that the italian homepage works perfectly on: http://local.crafttraining.craft.dev/it/.   In this file I have  `{% set pages = craft.entries.section('contentPages').level(1) %}.  {% for page in pages %}  <li>{{ page.getLink() }}</li> {% endfor %}`  This generates the links to the italian pages. Eg: http://local.crafttraining.craft.dev/it/assistenza-e-supporto.  Now, when I click that link, I get a 404 page. I checked the docs once more, but cannot find what I am doing wrong.  
  > **username_1**: Does your server support PATH_INFO? http://buildwithcraft.com/help/enable-path-info  
  > **username_0**: Hi username_1, your answer helpt me a littlebit further. This works:    'usePathInfo' => true,     'omitScriptNameInUrls' => false, so url's are with index.php: http://craft.dev/index.php/it/news-it/2015/we-just-installed-craft. If I set omitScriptNameInUrls to true it doesn't work anymore. 404's all over the place.  
  > **username_2**: Do you have the correct RewriteBase in `it/.htaccess`? I think I saw that causing 404s somewhere.  
  > **username_3**: This could be caused by a RewriteBase problem indeed, check this answer here: https://craftcms.stackexchange.com/a/25712/5948  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-07-21. Score: 0 | Accepted answer
  
  Found it (at last). The thing was that the . before .htaccess was removed when copying the files to the /it/ folder on OSx
  
  
  ---
  
  