diff --git a/~dev_rating/application/views/base.twig b/~dev_rating/application/views/base.twig
index a0929576872f87d883827b0dbfa6be2cbd719935..a25059d7853a14bddf7116ad9945c08636f69d8b 100644
--- a/~dev_rating/application/views/base.twig
+++ b/~dev_rating/application/views/base.twig
@@ -25,6 +25,7 @@
 	<title>{% block title %}{% endblock %} | {{ System.Title }}</title>
 	{{ HTML.style('media/css/base.css')|raw }}
 	{{ HTML.script('media/js/jquery-1.11.1.min.js')|raw }}
+	{{ HTML.script('media/js/config.js')|raw }}
 	{{ HTML.script('media/js/profile.js')|raw }}
 	{% block media %}{% endblock %}
 </head> 
diff --git a/~dev_rating/application/views/teacher/rating.twig b/~dev_rating/application/views/teacher/rating.twig
index 81a01d2ba51943171c99ddad02d118a51de3c3da..6b488e091d2071372e098f1ceea3e44b68f2f264 100644
--- a/~dev_rating/application/views/teacher/rating.twig
+++ b/~dev_rating/application/views/teacher/rating.twig
@@ -73,7 +73,7 @@
 		</tr>
 		<tr class="RatingTableSubmodulesHeadMaxRate">
 			{% set CellCount = 0 %} {% set col = 0 %}
-			<td class="title">Max. баллл</td>
+			<td class="title">Макс. балл</td>
 			{% for i in 1..headerRate.ModulesCount %}
 				{% set CellCount = CellCount + headerRate[i].SubmodulesCount %}
 				{% for j in 1..headerRate[i].SubmodulesCount %}
diff --git a/~dev_rating/media/js/config.js b/~dev_rating/media/js/config.js
new file mode 100644
index 0000000000000000000000000000000000000000..6aa1844597f2ffbfeb9708666cf39132445b7dc9
--- /dev/null
+++ b/~dev_rating/media/js/config.js
@@ -0,0 +1 @@
+var URLdir = '/~dev_rating';
\ No newline at end of file
diff --git a/~dev_rating/media/js/discipline/create.js b/~dev_rating/media/js/discipline/create.js
index 89a1aee1bb774e6b467ff8eef9d7136c1be884e4..ba7d8c42fc96adc78e082944544eebd6ce3625a0 100644
--- a/~dev_rating/media/js/discipline/create.js
+++ b/~dev_rating/media/js/discipline/create.js
@@ -4,7 +4,7 @@ $(function() {
 	// Изменения базовых параметров дисциплины
     $(".AddDiscipline").click(function(){
 		$.post(
-			'/~dev_rating/handler/map/AddDiscipline',
+			URLdir + '/handler/map/AddDiscipline',
 			{
 				'Grade': $('.SelectGrade').val(),
 				'SubjectID': $('.SelectSubject').val(),
diff --git a/~dev_rating/media/js/discipline/edit.js b/~dev_rating/media/js/discipline/edit.js
index 3887d9246700e06a7cb30959bf6998fe9497a080..237cf258b676dede092c2022f0296a3cdc897fd7 100644
--- a/~dev_rating/media/js/discipline/edit.js
+++ b/~dev_rating/media/js/discipline/edit.js
@@ -66,7 +66,7 @@ $(function() {
 	// Изменение типа подмодуля
 	function ChangeSubmoduleControlType(ID, ControlType){
 		$.post(
-			'/~dev_rating/handler/map/ChangeSubmoduleControlType',
+			URLdir + '/handler/map/ChangeSubmoduleControlType',
 			{
 				'SubmoduleID': ID,
 				'ControlType': ControlType
@@ -83,7 +83,7 @@ $(function() {
 	// Изменение макс. балла подмодуля
 	function ChangeSubmoduleMaxRate(ID, NewMaxRate) {
 		$.post(
-			'/~dev_rating/handler/map/ChangeSubmoduleMaxRate',
+			URLdir + '/handler/map/ChangeSubmoduleMaxRate',
 			{
 				'SubmoduleID': ID,
 				'MaxRate': NewMaxRate
@@ -155,7 +155,7 @@ $(function() {
 	// Поменять местами два модуля
 	function SwapModuleOrder(ModuleID1, ModuleID2) {
 		$.post(
-			'/~dev_rating/handler/map/SwapModuleOrder',
+			URLdir + '/handler/map/SwapModuleOrder',
 			{
 				'ModuleID1': ModuleID1,
 				'ModuleID2': ModuleID2
@@ -172,7 +172,7 @@ $(function() {
 	// Поменять местами два мероприятия
 	function SwapSubmoduleOrder(SubmoduleID1, SubmoduleID2) {
 		$.post(
-			'/~dev_rating/handler/map/SwapSubmoduleOrder',
+			URLdir + '/handler/map/SwapSubmoduleOrder',
 			{
 				'SubmoduleID1': SubmoduleID1,
 				'SubmoduleID2': SubmoduleID2
@@ -193,7 +193,7 @@ $(function() {
 	// Изменение предмета
 	$('.SelectSubject').change(function(){
 		$.post(
-			'/~dev_rating/handler/map/ChangeDisciplineSubject',
+			URLdir + '/handler/map/ChangeDisciplineSubject',
 			{
 				'DisciplineID': DisciplineID,
 				'SubjectID': $('.SelectSubject').val()
@@ -210,7 +210,7 @@ $(function() {
 	// Изменение курса
 	$('.SelectDisGrade').change(function(){ // SelectGrade совпадает с другим, поэтому SelectDisGrade
  		$.post(
-			'/~dev_rating/handler/map/ChangeDisciplineGrade',
+			URLdir + '/handler/map/ChangeDisciplineGrade',
 			{
 				'DisciplineID': DisciplineID,
 				'GradeID': $('.SelectDisGrade').val()
@@ -227,7 +227,7 @@ $(function() {
 	// Изменение контроля
 	$('.ExamType').change(function(){
 		$.post(
-			'/~dev_rating/handler/map/ChangeDisciplineControl',
+			URLdir + '/handler/map/ChangeDisciplineControl',
 			{
 				'DisciplineID': DisciplineID,
 				'Control': $('input:radio[name=ExamType]:checked').val()
@@ -244,7 +244,7 @@ $(function() {
 	// Изменение лекционных часов
 	$('.InputLectionCount').focusout(function(){
 		$.post(
-			'/~dev_rating/handler/map/ChangeDisciplineHours',
+			URLdir + '/handler/map/ChangeDisciplineHours',
 			{
 				'DisciplineID': DisciplineID,
 				'Hours': $('.InputLectionCount').val(),
@@ -262,7 +262,7 @@ $(function() {
 	// Изменение практических часов
 	$('.InputPracticeCount').focusout(function(){
 		$.post(
-			'/~dev_rating/handler/map/ChangeDisciplineHours',
+			URLdir + '/handler/map/ChangeDisciplineHours',
 			{
 				'DisciplineID': DisciplineID,
 				'Hours': $('.InputPracticeCount').val(),
@@ -280,7 +280,7 @@ $(function() {
 	/*
     $(".ChangeDiscipline").click(function(){
 		$.post(
-			'/~dev_rating/handler/map/ChangeDiscipline',
+			URLdir + '/handler/map/ChangeDiscipline',
 			{
 				'DisciplineID': DisciplineID,
 				'Grade': $('.SelectGrade').val(),
@@ -359,7 +359,7 @@ $(function() {
 	$('.addModule').click(function(){
 		var OrderNum = $('.moduleGroup', '.moduleList').last().index('.moduleGroup') + 2;
 		$.post(
-			'/~dev_rating/handler/map/AddModule',
+			URLdir + '/handler/map/AddModule',
 			{
 				'DisciplineID': DisciplineID,
 			//	'OrderNum': OrderNum
@@ -394,7 +394,7 @@ $(function() {
 		var SubmodulesDIV = $(this).parent().parent().next('.subModules');
 		var OrderNum = SubmodulesDIV.children('.subModule').last().index() + 1;
 		$.post(
-			'/~dev_rating/handler/map/AddSubmodule',
+			URLdir + '/handler/map/AddSubmodule',
 			{
 				'ModuleID': ModuleID,
 				'OrderNum': OrderNum
@@ -417,7 +417,7 @@ $(function() {
 		var SubmodulesDIV = $(this).siblings('.subModules');
 		var OrderNum = SubmodulesDIV.children('.subModule').last().index() + 2;
 		$.post(
-			'/~dev_rating/handler/map/AddSubmodule',
+			URLdir + '/handler/map/AddSubmodule',
 			{
 				'ModuleID': ModuleID
 				//'OrderNum': OrderNum
@@ -460,7 +460,7 @@ $(function() {
 		var ChangeOrderModulesID = '[' + AttrID.get() + ']';
 		//
 		$.post(
-			'/~dev_rating/handler/map/DeleteModule',
+			URLdir + '/handler/map/DeleteModule',
 			{
 				'ModuleID': $(this).parent('div').parent('div').parent('div').attr('id'),
 				'SubmodulesID': JSONSubmodules,
@@ -498,7 +498,7 @@ $(function() {
 		var ChangeOrderSubmodulesID = '[' + AttrID.get() + ']';
 		//
 		$.post(
-			'/~dev_rating/handler/map/DeleteSubmodule',
+			URLdir + '/handler/map/DeleteSubmodule',
 			{
 				'SubmoduleID': $(this).parent('div').parent('div').attr('id'),
 				'CurrentSubmoduleOrder': CurrentSubmoduleOrder,
@@ -531,7 +531,7 @@ $(function() {
 		if (NewModuleName != '' && ModuleName != NewModuleName) {
 			var ID = $(this).parent('div').parent('div').parent('div').attr('id');
 			$.post(
-				'/~dev_rating/handler/map/ChangeModuleName',
+				URLdir + '/handler/map/ChangeModuleName',
 				{
 					'ModuleID': ID,
 					'ModuleName': NewModuleName
@@ -561,7 +561,7 @@ $(function() {
 		if (NewSubmoduleName != '' && SubmoduleName != NewSubmoduleName) {
 			var ID = $(this).parent('div').parent('div').attr('id');
 			$.post(
-				'/~dev_rating/handler/map/ChangeSubmoduleName',
+				URLdir + '/handler/map/ChangeSubmoduleName',
 				{
 					'SubmoduleID': ID,
 					'SubmoduleName': NewSubmoduleName
@@ -626,7 +626,7 @@ $('.AttachGroupButton').click(function(){
 	var StudyGroupID = $('.SelectStudyGroup').val();
 	var StudyGroupName = $(".SelectStudyGroup option:selected").text();
 	$.post(
-		'/~dev_rating/handler/map/BindGroup',
+		URLdir + '/handler/map/BindGroup',
 		{
 			'StudyGroupID': StudyGroupID,
 			'DisciplineID': DisciplineID
@@ -647,7 +647,7 @@ $('.AttachedGroupsList').on('click', '.UnbindGroup', function(){
 	var StudyGroupID = $(this).parent().attr('id');
 	var GroupDIV = $(this).parent();
 	$.post(
-		'/~dev_rating/handler/map/UnbindGroup',
+		URLdir + '/handler/map/UnbindGroup',
 		{
 			'StudyGroupID': StudyGroupID,
 			'DisciplineID': DisciplineID
@@ -688,7 +688,7 @@ function CallSearchStudents() {
 	if ($('.InputStudentName ').val() > 0)
 		Name = ($('.InputStudentName ').val()).split(' ');
 	$.post(
-		'/~dev_rating/handler/map/SearchStudents',
+		URLdir + '/handler/map/SearchStudents',
 		{
 			'GradeID': $('.SelectGrade').val(),
 			'GroupN': $('.SelectStudyGroup').val(),
@@ -717,7 +717,7 @@ function CallSearchStudents() {
 
 $('.SelectGrade').change(function(){
 	$.post(
-		'/~dev_rating/handler/map/GetStudyGroups',
+		URLdir + '/handler/map/GetStudyGroups',
 		{
 			'FacultyID': FacultyID,
 			'GradeID': $('.SelectGrade').val()
@@ -770,7 +770,7 @@ $('.StudentsList').on('click', '.Action_BindStudent', function(){
 		.addClass('StatusBind');
 	var ID = $(this).parent().attr('id');
 	$.post(
-		'/~dev_rating/handler/map/BindStudent',
+		URLdir + '/handler/map/BindStudent',
 		{
 			'StudentID': ID,
 			'DisciplineID': DisciplineID
@@ -812,7 +812,7 @@ $('.StudentsList').on('click', '.Action_UnbindStudent', function(){
 		.addClass('StatusUnbind');
 	var ID = $(this).parent().attr('id');
 	$.post(
-		'/~dev_rating/handler/map/UnbindStudent',
+		URLdir + '/handler/map/UnbindStudent',
 		{
 			'StudentID': ID,
 			'DisciplineID': DisciplineID
@@ -857,7 +857,7 @@ function CallSearchTeachers(){
 	var Name = [];
 	Name = ($('.InputTeacherName ').val()).split(' ');
 	$.post(
-		'/~dev_rating/handler/map/SearchTeachers',
+		URLdir + '/handler/map/SearchTeachers',
 		{
 			'FacultyID': $('.SelectFaculty').val(),
 			'DepartmentID': $('.SelectDepartment').val(),
@@ -885,7 +885,7 @@ function CallSearchTeachers(){
 // Выборка кафедр
 $('.SelectFaculty').change(function(){
 	$.post(
-		'/~dev_rating/handler/map/GetDepartments',
+		URLdir + '/handler/map/GetDepartments',
 		{
 			'FacultyID': $('.SelectFaculty').val()
 		},
@@ -934,7 +934,7 @@ $('.TeachersList').on('click', '.Action_UnbindTeacher', function(){
 		.remove();
 	var ID = $(this).parent().attr('id');
 	$.post(
-		'/~dev_rating/handler/map/UnbindTeacher',
+		URLdir + '/handler/map/UnbindTeacher',
 		{
 			'BindingTeacher': ID,
 			'DisciplineID': DisciplineID
@@ -956,7 +956,7 @@ $('.TeachersList').on('click', '.Action_BindTeacher', function(){
 	var ID = $(this).parent().attr('id');
 	var Name = $(this).siblings('.Name').text();
 	$.post(
-		'/~dev_rating/handler/map/BindTeacher',
+		URLdir + '/handler/map/BindTeacher',
 		{
 			'BindingTeacher': ID,
 			'DisciplineID': DisciplineID
diff --git a/~dev_rating/media/js/rating.js b/~dev_rating/media/js/rating.js
index 21d309c08e2b65110365b959a741fe00d32108ac..410d3e8402f48ca2d3e23f64c575c8ba563851f7 100644
--- a/~dev_rating/media/js/rating.js
+++ b/~dev_rating/media/js/rating.js
@@ -46,7 +46,13 @@ $(function() {
 
 		if (parseInt(NewRate) <= parseInt(MaxRate)) 
 		{
-			$.post('/~dev_rating/handler/rating/setRate', {'student': StudentID, 'submodule': SubmoduleID, 'rate': NewRate },
+			$.post(
+				URLdir + '/handler/rating/setRate',
+				{	
+					'student': StudentID,
+					'submodule': SubmoduleID,
+					'rate': NewRate
+				},
 				function(data){
 					data = $.parseJSON(data);
 					if(data.success === true) {