Adding HTML pages outside of the CMS

Mike Bilz asked on June 23, 2017 01:05

Hello Kentico team,

What is the proper way to add HTML documents to my site outside of the CMS structure?

I have a set of self contained HTML pages that need to be added to the site as-is. Are there any special steps to FTPing these files onto my server so that they don't interfere with the Kentico CMS? Will Kentico allow access to these URLs once they're uploaded, or will it flag them as 404 errors because they aren't in the database?

Should these be added in a sub-directory instead?

Thanks in advance. -mike

Correct Answer

Brenden Kehren answered on June 23, 2017 14:52

As Roman said, nothing special to include them. BUT you will want to exclude them from Kentico processing. You can find this in Settings>URL format>Excluded URLs. In there enter the relative path in the file system where your html docs reside. Make sure the path does not collide with a path you may already have in the CMS.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Roman Hutnyk answered on June 23, 2017 11:13

You may store them into a file system wherever you need (I'd place them into sub folder). Kentico will allow access them. The URL for those pages will be based on their location in file system.

There is nothing special in regards of uploading them.

2 votesVote for this answer Mark as a Correct answer

Mike Bilz answered on June 23, 2017 20:21

Thank you Brenden and Roman, that is a big help. I was able to get my page uploaded.

For anyone else struggling with this process, please note that the "Root" of Kentico is the CMS folder. So all static HTML pages will need to be added inside of the CMS folder.

Thanks again.

-mike

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.