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

Kopeks htaccess Rules question

Richard Wheeler

Jan 16, 2018 06:55PM EST

I tested my token installation in a subfolder on my site - /test2web When all was good I moved it to the root, and all seemingly work perfectly. However just yesterday in perusing the htaccess file in /koken folder I see that the /test2web location is still referenced in a section of the htaccess rules:

# Redirect everything else to custom site path
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)?$ /test2web/$1 [R=301,L]

What part of the Rewrite rule should I replace/delete? Is it necessary that I do so?

Up 0 rated Down

Team NetObjects Koken Agent

Jan 17, 2018 09:35AM EST

Try changing the url to in Settings and save it. Then connect via FTP and see if there are any .htaccess, index.html or index.php files in root. If so, rename them, then try changing the url back to root in Settings. Koken will generate the necessary files.

Up 0 rated Down

Richard Wheeler

Jan 17, 2018 12:39PM EST
Thanks. I did what you suggested. It created a new folder, as expected, called koken2, which contained the index.php file. The index.php file at root was gone. Did not affect the hatches file at root.

The renamed the URL in settings back to my, which eliminated the koken2 folder and put back the index.php at root.

However the htaccess file (part of which is copied in the original post) is in the htaccess file in the koken folder. That was not replaced. The token folder seems to be unchanged by what doing the URL name change.

So can I just edit it? Or is there another workaround? The test2web folder does not exist anymore.
Up 0 rated Down

Team NetObjects Koken Agent

Jan 17, 2018 12:40PM EST

If everything is working there is no reason to make a change.

Up 0 rated Down

Richard Wheeler

Jan 17, 2018 01:13PM EST
OK - sounds good to me. Just wanted to make sure there was nothing happening that I was unaware of - that is, something below the surface that was redirecting my site to a nonexistent directory - and thus generating a 404.

This question has received the maximum number of answers.
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found