80 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 ...
user avatar
76 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 ...
user avatar
  • 13.7k
36 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> <...
user avatar
31 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 ...
user avatar
  • 14.4k
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 ...
user avatar
  • 24.4k
27 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) ...
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 ...
user avatar
  • 1,912
22 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 ...
user avatar
  • 2,916
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 ...
user avatar
  • 354
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 ...
user avatar
  • 18.9k
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. ...
user avatar
18 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 ...
user avatar
  • 4,741
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 ...
user avatar
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 ...
user avatar
17 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=...
user avatar
  • 629
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 ...
user avatar
  • 2,353
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 ...
user avatar
16 votes

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 ...
user avatar
  • 331
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" />
user avatar
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....
user avatar
  • 19.2k
15 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, ...
user avatar
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....
user avatar
  • 1,304
15 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 ...
user avatar
  • 363
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 ...
user avatar
  • 18.9k
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"> ...
user avatar
  • 1,752
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> &...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 13.7k
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 ...
user avatar
  • 13.7k
13 votes

How do you setup a 404 and 500 error page for missing files and media items?

For 404 page, for not found files or items, Sitecore has out-of-box setting - <setting name="RequestErrors.UseServerSideRedirect" value="true" /> Make sure, you define your physical 404 page ...
user avatar
  • 1,007

Only top scored, non community-wiki answers of a minimum length are eligible