
#HOW TO DISABLE WEB ESSENTIALS VS 2013 HOW TO#
#HOW TO DISABLE WEB ESSENTIALS VS 2013 CODE#
So, let’s see the alternate approach of disabling mobile view in SharePoint 2013 by editing web.config file.Īdd the below code with in node, just before node of the web.config file (located at the root of your SharePoint web site in IIS) of your SharePoint web application. Also, there is a high probability of SharePoint service packs overwriting our changes with the latest updates. While the above method disables mobile redirect per device, There are chances that some devices/browsers may not be listed there. Turn Off Mobile Redirect for a Web Application:

This method Turns-Off Mobile redirect for all specific mobile browsers. Search and replace this attribute for all occurrences in the file.Just change the “Value” attribute of the node “Capability” from “true” to “false”.You’ll find multiple “Browser” nodes in the file.Open “App_Browsers” folder and then Open “compat.browser” file in a Notepad (or any other text editor).This will open the virtual directory of your SharePoint web application. From IIS Manager, Right-click your SharePoint Web site, and choose “Explore”.Login to your SharePoint Web Front End(s), Open IIS Manager.By default, this file is located at “c:\inetpub\wwwroot\wss\VirtualDirectories\80\App_Browsers\compat.browser” To disable the mobile site, let’s edit the “compat.browser” file – which lists all the browser “user agent” strings that it will redirect. Method 2: Change the redirect behavior of a mobile browser Write-host "Feature deactivated at site: $($Web.Url)" $feature = Get-SPFeature -web $Web.Url | Where-object ĭisable-SPFeature -identity $FeatureName -URL $Web.URL -Force -Confirm:$false $WebsCollection = Get-SPWebApplication $WebAppURL | Get-SPSite -Limit ALL | Get-SPWeb -Limit ALL #Disable Mobile View feature on all sites in the web application #In SharePoint 2010: $FeatureName = "MobilityRedirect" Let’s use PowerShell to deactivate mobile friendly sites.Īdd-PSSnapin -ErrorAction Silentl圜ontinue So, if you want to turn off mobile view for your SharePoint 2013, you have to repeat these steps in each and every site in your web application! Disable mobile view in SharePoint 2013 using PowerShellįortunately, we have PowerShell.

But wait! This feature is scoped at site level. That’s all! This disables mobile redirect on the particular SharePoint site.

SharePoint 2013’s new mobile features are definitely improved a lot from its previous versions.
