Support Center

Recent questions

About Koken

This Help Center provides support for Koken, a free content management system designed for photographers, artists and designers.

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to get images works with SEO?

Michal

Feb 11, 2018 12:18PM EST

Hi,

After successing with configure Koken on my site I imported some example photos and it showed up on my frontpage, but when I uploaded .htaccess file in site root all photos have disappeared (there was picture names only). Also when I checked my Library, all of them was turn black. I used "Clear image cache" and "Build image cache" options but it seems nothing works. After delete .htaccess images is showing up.

My .htaccess content:
## Make sure settings.css.lens is rendered as CSS
AddType text/css .lens

## SVG MIME type as some servers don't have it
AddType image/svg+xml .svg

## UTF-8 encoding for everything
AddDefaultCharset utf-8

DirectoryIndex index.php index.html

## Enable gzip.
## Highly recommended as it will increase speed for
## both the console and your published site.
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/json application/javascript application/x-javascript
</IfModule>
## END gzip

## Rewrite Rules (Pretty URLs)
## These rules remove index.php/ from your published site links
## and also speed up the serving of cached images.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} /storage/cache/images(/(([0-9]{3}/[0-9]{3})|custom)/.*)$
RewriteRule . /i.php?path=%1 [L]

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} /storage/cache/albums(/([0-9]{3}/[0-9]{3})/.*)$
RewriteRule . a.php?path=%1 [L]

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{REQUEST_URI} ^/?$
RewriteCond %{QUERY_STRING} _pjax=
RewriteCond %{DOCUMENT_ROOT}/storage/cache/site/index/cache.phtml -f
RewriteRule .* /storage/cache/site/index/cache.phtml [L]

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{REQUEST_URI} ^/?$
RewriteCond %{QUERY_STRING} !_pjax=
RewriteCond %{DOCUMENT_ROOT}/storage/cache/site/index/cache.html -f
RewriteRule .* /storage/cache/site/index/cache.html [L]

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{QUERY_STRING} _pjax=
RewriteCond %{DOCUMENT_ROOT}/storage/cache/site%{REQUEST_URI}cache.phtml -f
RewriteRule . /storage/cache/site%{REQUEST_URI}cache.phtml [L]

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{QUERY_STRING} !_pjax=
RewriteCond %{HTTP_COOKIE} !share_to_tumblr=
RewriteCond %{DOCUMENT_ROOT}/storage/cache/site%{REQUEST_URI}cache.html -f
RewriteRule . /storage/cache/site%{REQUEST_URI}cache.html [L]

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/storage/cache/site%{REQUEST_URI} -f
RewriteRule . /storage/cache/site%{REQUEST_URI} [L]

RewriteCond %{QUERY_STRING} ^/(.*)
RewriteRule ^index.php %1? [R,L]
RewriteRule ^index.php/(.*)$ $1 [R,L]

RewriteRule ^(index.php)?$ /app/site/site.php?url=/ [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !favicon.ico
RewriteRule ^(.*)$ /app/site/site.php?url=/$1 [L,QSA]
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
# Set default to 0 so .php/API requests are not cached
ExpiresDefault A0

# Do not cache MP4s, as Chrome and others tend to fail on first playback
<FilesMatch "\.mp4$">
<IfModule mod_headers.c>
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</IfModule>
</FilesMatch>

<FilesMatch "console_.*\.(js|css)$">
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
</FilesMatch>

<FilesMatch "\.\d{9,10}\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG)$">
ExpiresDefault "access plus 1 year"
</FilesMatch>
</IfModule>

Up 0 rated Down

Michal.B

Feb 15, 2018 10:31AM EST
Ok. I found that the problem is some malfunction in Koken source code or wrong parameters in .htaccess file. With Rewrite Rules On, Koken doesn't recognize imported content, so it cannot generate cache images.

And I can see that there is nobody, who can help me.
Up 0 rated Down

Hans Rupert

Mar 13, 2018 09:10AM EDT
I wish I could help, but my limited knowledge of the .htaccess file is just trying to keep from *breaking* it. Have you tried the kokensupport.com site?

This question has received the maximum number of answers.

support@koken.me
http://assets1.desk.com/
false
koken
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete