Friday, November 10, 2017

URL redirect rule for rewriting non-www to www



You can add below rule by manually in web.config.

In the <system.webServer> section of your web.config, add the following:

<rewrite>
<rules>
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^domain.com$" />
</conditions>
<action type="Redirect" url="http://www.domain.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>

Friday, December 2, 2016

Kentico 10 installation

In this post, we are going to learn how to install Kentico 10 in step by step way.




Please go through below URLs to know more about Kentico CMS 10

  1. Get Kentico CMS 10 documentation here 
  2. Learn how to develop website in kentico? (documentation

Download Kentico 10 trail version here


Enjoy Kentico 10....!

Wednesday, November 30, 2016

Kentico CMS user dependency tables to delete user from CMS_User table

Before removing the user from CMS_User table need to check below tables and delete first from here.

  DELETE FROM [wethevoicekentico].[dbo].[CMS_User] WHERE UserID=<UserID>
  SELECT *FROM CMS_ObjectSettings WHERE ObjectCheckedOutByUserID=<UserID>
  DELETE FROM CMS_ObjectSettings WHERE ObjectCheckedOutByUserID=<UserID>
  SELECT *FROM CMS_UserSettings  WHERE UserSettingsUserID=<UserID>
  DELETE FROM CMS_UserSettings  WHERE UserSettingsUserID=<UserID>
  SELECT *FROM CMS_UserSite WHERE UserID=<UserID>
  DELETE FROM CMS_UserSite WHERE UserID=<UserID>
  SELECT *FROM CMS_ObjectVersionHistory WHERE VersionModifiedByUserID=<UserID>
  DELETE FROM CMS_ObjectVersionHistory WHERE VersionModifiedByUserID=<UserID>

Monday, July 18, 2016

How to know .net framework version installed on your machine(Windows)?

You can find the .NET version running on your machine using the following steps:

Step 1: Open command prompt.
Press Windows Button + R for open 'Run' windows and type 'cmd' to open Command prompt.



Step 2. Copy below command and paste in your command prompt and hit enter to get latest installed version.

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full".

Result:

Wednesday, May 14, 2014

How to unlock if the Global Administrator is locked?

How to unlock if the Global Administrator is locked?

If you can get to access the database, you can modify the administrator record in the CMS_User table.

Method 1:

Using below query to unlock Global Administrator from Database:

 UPDATE CMS_User set UserEnabled=1 WHERE UserID=<userid>

Method 2:

you can also use the CMSAdminEmergencyReset key in your web.config file.
Reseting the password via a web.config key can be done by inserting the following key to the appSettings section of your web.config:

<add key="CMSAdminEmergencyReset" value="<your username>;<your new password>;[true/false]"/> 


The first and second parameter specify your user name and your new password, delimited by a semicolon. The third parameter is optional and indicates whether you want to create a new user with global administrator rights.

The appsetting key will be automatically removed from web.config after you got access to the CMSDesk or CMSSiteManager.