<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>

CC BY-SA 3.0
2015-07-21T08:09:07.803Z
2015-07-21T08:09:07.803Z
Tom Suter
<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>

CC BY-SA 3.0
2015-07-15T19:18:49.373Z
You sure you've enabled Italian for section you're trying to view?
Brad Bell
CC BY-SA 3.0
2015-07-16T06:17:14.667Z
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.
Tom Suter
CC BY-SA 3.0
2015-07-16T18:04:21.353Z
Does your server support PATH_INFO? http://buildwithcraft.com/help/enable-path-info
Brad Bell
CC BY-SA 3.0
2015-07-17T12:26:53.780Z
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.
Tom Suter
CC BY-SA 3.0
2015-07-20T13:17:25.370Z
Do you have the correct RewriteBase in `it/.htaccess`? I think I saw that causing 404s somewhere.
megatrond
CC BY-SA 3.0
2018-04-17T09:51:31.553Z
This could be caused by a RewriteBase problem indeed, check this answer here: https://craftcms.stackexchange.com/a/25712/5948
Tobias S.
<localization><404>
404 when opening a localized page
# 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:
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:

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]


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 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.  
> **username_1**: Does your server support PATH_INFO? http://buildwithcraft.com/help/enable-path-info  
> **username_0**: 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.  
> **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


---

