85
votes
Accepted
How do you setup a 404 and 500 error page for missing files and media items?
The following setup may take some effort, but it will give you proper status codes, as well as "keeping" the requested URL, avoiding superfluous requests between Sitecore and IIS, and allow other ...
77
votes
Accepted
Is there a way to disable a config patch file without renaming or deleting it?
You can set the "Hidden" file attribute. Sitecore will not patch in any hidden files, even if they have the .config extension. The same is also true for folders, setting the "Hidden" attribute will ...
37
votes
Accepted
What is the purpose of keepalive.aspx?
Purpose of keepalive.aspx
Here's the full code of the page in Sitecore 8.0:
<%@Page Language="C#" %>
<%@ Import Namespace="Sitecore.Analytics" %>
<!DOCTYPE html>
<html>
<...
32
votes
Accepted
How do I disable /sitecore access on a Content Delivery Server?
There are several pieces of documentation that are available for this:
First is https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/security_hardening
This contains a ...
30
votes
Accepted
Can you identify the Sitecore version from the Sitecore.Kernel.dll version?
With Sitecore 8.2 Initial release, you could open the properties of a Sitecore.Kernel.dll, go to the Details tab, and the "Product Version" field contained the revision number (rev. 160729) ...
Community wiki
29
votes
How do I disable /sitecore access on a Content Delivery Server?
While the above answers are correct; you should concern yourself with more than just restricting access to the /sitecore folder - there is a very quick and easy way to achieve what you are ...
24
votes
Accepted
How can I disable xDB?
For Sitecore 8.1 and later:
Per Sitecore documentation, you can run in "CMS-only" mode:
To run CMS-only mode, you must set the Xdb.Enabled configuration setting to false in the Sitecore.Xdb.config ...
24
votes
Accepted
Configuring Sitecore to display PDFs in browser
The <mediaLibrary><mediaTypes> section of Sitecore.config (or web.config in older versions of Sitecore) contains a <mediatype> element for each file type. Within each mediatype ...
22
votes
Accepted
Viewing the compiled Sitecore config on Content Delivery?
It's easier Today if you work with Sitecore 9, you can do it from your Content Management server. Just go to /sitecore/admin/ShowConfigLayers.aspx and select Content Delivery.
This is article ...
22
votes
Accepted
Install-SitecoreConfiguration xconnect-solr.json - Error Invoke-ManageSolrCoreTask : Missing required parameter: name
Maybe you are facing a problem with the SitecoreInstallationFramework version?
Sitecore 9.0.X requires 1.2.1:
Install-Module -Name SitecoreInstallFramework -RequiredVersion 1.2.1
Sitecore.9.1.0 ...
20
votes
How do I configure Sitecore to serve multiple sites?
This is an addition to Kyles answer. While you can do the full site definition for each site, it quickly becomes cumbersome and really for most of the settings you have the same values.
So you can ...
19
votes
Accepted
How to run Sitecore in Live Mode?
The settings are: database=master, filterItems=true and enableWorflow=true.
There is an example patch file included in App_Config/Include named LiveMode.config.example.
<configuration xmlns:patch=...
19
votes
How do you setup a 404 and 500 error page for missing files and media items?
Edit: February 2020
NuGet package 2.0.0 was released exclusively for Sitecore 9.x support. Full implementation available at https://github.com/jraps20/SitecoreFriendlyErrors
Edit: November 2017
The ...
19
votes
Accepted
Is it possible to exclude some Sitecore Items from analytics tracking?
I actually just discovered the answer to my own question after more poking around.
Highlight the item in the Sitecore Content Explorer.
From the Analyze ribbon select the Attributes button.
...
18
votes
Accepted
How do I configure Sitecore to serve multiple sites?
You can configure Sitecore to respond to requests with different home nodes based on the url.
To do so, you need to perform the following steps:
Configure DNS appropriately.
Add a binding in IIS for ...
18
votes
Accepted
How can I share settings between multiple TDS projects?
TDS has a feature named Global Config File that allows you to define the value of any TDS project setting in a centralized manner.
Setting up the TdsGlobal.config
To start using this feature, right ...
17
votes
Accepted
Sitecore administration page to view all pipeline processors
Yes there is. Depends on your Sitecore version but you can use: /sitecore/admin/pipelines.aspx
Sitecore Pipeline Profiler page
The Sitecore Pipeline Profiler page has been in from Sitecore 7 but is ...
16
votes
How can I disable xDB?
Starting from Sitecore 8.1, the settings that disable xDB have changed.
The settings are now located in Sitecore.Xdb.config. There are two boolean settings:
Xdb.Enabled — if you set this to false, ...
16
votes
Accepted
How does the `ref` attribute work in Sitecore configuration files?
The Sitecore XML configuration has some fairly handy things in it, and ref is one of them. I spent a bit of time playing around with it some time ago; I think that I can provide an answer, but it's ...
16
votes
Accepted
Cannot patch Sitecore initialize pipeline (Sitecore 8.1 Update 3)
The fix
There are invisible characters in the configuration file; this is something that may happen when you copy configuration text directly from a web page. Remove the characters and the issue will ...
16
votes
Accepted
Disable EXM and remove connection strings
Instead of changing the EXM.Enabled setting, try setting the following to no in your Web.config:
<add key="exmEnabled:define" value="no" />
16
votes
Accepted
Server role config with ContentManagement,Processing,Reporting not working
We called upon Sitecore Support and they told us this was a "bug". It will be documented but until that is done, you can follow this guide:
App_Config\Sitecore\Marketing.xDB\Sitecore.Xdb.Remote....
15
votes
Accepted
How to default the media browser to tree view
In Sitecore 7.1-7.5 there is a configuration file called Sitecore.Speak.config in the include folder. In that file find the following line:
<override xmlControl="Sitecore.Shell.Applications.Media....
15
votes
Accepted
How or where should I add a required connection string for a feature in Helix?
You would need to use an XmlTransform to do this. If you look at the Habitat demo site you can see examples of how to do this.
Creating the transform file
You would add your connection string to a ...
15
votes
Accepted
Patching to remove index update strategies
You can use <patch:delete /> to achieve this. It will look like:
<sitecore>
<contentSearch>
<configuration>
<indexes>
<index id="xxxxx">
...
14
votes
How do I disable /sitecore access on a Content Delivery Server?
We do this using an IIS Rewrite Rule like so:
<rule name="Block Sitecore Access Rule" stopProcessing="true" xdt:Transform="Insert">
<match url=".*" />
<conditions>
&...
14
votes
Accepted
How is the FXM bundle beacon constructed?
The beacon is created by taking a series of scripts and 'bundeling' them together (minifying and caching them).
Have a look in App_Config\Include\FXM\Sitecore.FXM.Bundle.config .. this shows all the ...
14
votes
Accepted
How do you best manage security domains using SXA with the Active Directory module?
After a nice weekend of trial-and-error with the help of DotPeek, here is what I've come up with. This should be a complete example for use after installing the Active Directory module (using version ...
14
votes
Accepted
Is there a way to load the ShowConfig before Sitecore finishes initializing?
You can use the Sitecore Config Builder tool which is available on the Marketplace.
Select the web.config for the solution and then choose where to save the resulting merged config file. This is the ...
14
votes
X-Frame Option in Sitecore 9
Yes, this is one of the recommended approaches to prevent clickjacking, and adding the X-frame-options header is one of the required steps.
After making the changes to the web.config, you should see ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
configuration × 306site-configuration × 18
solr × 17
security × 17
azure × 13
sitecore-client × 10
xdb × 9
iis × 9
content-search × 8
indexing × 8
media-library × 7
sxa × 6
xconnect × 6
upgrade × 6
pipelines × 6
content-delivery × 6
patch-configuration × 6
experience-editor × 5
azure-search × 5
logging × 5
error-handling × 5
content-editor × 4
caching × 4
sql-database × 4
multisite × 4