statamic / v2-docs

Statamic v2 Documentation
https://v2.statamic.com
54 stars 131 forks source link

Update localization.md #391

Closed axelferdinand closed 5 years ago

axelferdinand commented 5 years ago

Not sure how to formulate this, but when using static caching and multiple locales, the .htaccess file on the second locale needs to be updated with the locale name:

RewriteCond %{DOCUMENT_ROOT}/en/static/%{REQUESTURI}%{QUERY_STRING}.html -s RewriteCond %{REQUEST_METHOD} GET RewriteRule .* static/%{REQUESTURI}%{QUERY_STRING}.html [L,T=text/html]

Notice the /en/ (which is my second locale) in the first line.

Everything works perfect with this adjustment.

jasonvarga commented 5 years ago

Can't you just add an htaccess in the subdirectory?

axelferdinand commented 5 years ago

An empty one? When simply copying the root htaccess it doesn’t work - static caching, that is - on the second locale, at all. I had to update the first line on the caching settings with the second locale name (en)

tir. 4. des. 2018 kl. 17:39 skrev Jason Varga notifications@github.com:

Can't you just add an htaccess in the subdirectory?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/statamic/docs/pull/391#issuecomment-444167463, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ-exhLl1i_3IGo7Exu6BiveJjVptkb5ks5u1qVEgaJpZM4ZBC9S .

--

Axel Ferdinand Giæver Designer

axel@dekode.no | +47 9555 9666 <004795559666>

Dekode Interaktiv AS Tollbugata 11, 0152 Oslo

https://dekode.no