Improve the security of the website folder
Improve the folder structure after you install Sitecore.
After you install Sitecore, you can increase the security if you place the following folders outside the /Website root folder:
/data/indexes
Important
After moving the /data folder, you must edit the Sitecore.config file to point to the new location and configure the permissions for the ASP.NET requests.
Depending on how you install Sitecore, the folders may already be located outside the /Website folder. If you install Sitecore using:
The installation program, then the
/datafolder is created outside the website root folder and theSitecore.configfile is edited to point to this location. The/indexesfolder is placed in the/datafolder.This is the recommended configuration and you do not need to make any changes.
A
.zipfile, then the/datafolder is created outside the website root folder, but the/indexescod/data/data/WebsiteIf you choose to install in this way, you should also edit the
Sitecore.configfile to point to the correct location.The
Sitecore.configfile should look like this:<sitecore database="SqlServer"> <sc.variable name="dataFolder" value="C:\Inetpub\wwwroot\SitecoreWebsite\data\" /> <sc.variable name="mediaFolder" value="/upload" /> <sc.variable name="tempFolder" value="/temp" />