diff --git a/~dev_rating/application/views/admin/base.twig b/~dev_rating/application/views/admin/base.twig
index 417a9513bf1a545703f196e39ff3d9f581762dc0..067ded5bbc8cec2720e4cb5a369fbb19307895ae 100644
--- a/~dev_rating/application/views/admin/base.twig
+++ b/~dev_rating/application/views/admin/base.twig
@@ -36,6 +36,7 @@
 	{{ HTML.style('media/css/admin/macro.css')|raw }}
         {{ HTML.style('media/css/actionButton.css')|raw }}
 	{{ HTML.script('media/js/jquery-1.11.1.min.js')|raw }}
+        {{ HTML.script('media/js/config.js')|raw }}
 	{% block media %}{% endblock %}
 </head> 
 <body>
diff --git a/~dev_rating/media/js/admin/accounts/codes.js b/~dev_rating/media/js/admin/accounts/codes.js
index 09474e623d4dfdd510d42eeea7523757eb9452bb..fdd7690d3bd70ab7c2aaca2815fb509b890be7a9 100644
--- a/~dev_rating/media/js/admin/accounts/codes.js
+++ b/~dev_rating/media/js/admin/accounts/codes.js
@@ -25,7 +25,7 @@ $(function()
             {
                 $('#departmentSelect').attr('disabled', 'disabled');
                 $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
-                $.post('/~dev_rating/handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
+                $.post(URLdir + 'handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
                     $.each(data, function(i){
                         $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
                     });
@@ -49,7 +49,7 @@ $(function()
         
     $('body').on('click', '#downloadTeacherPDF', function(){
         $('#downloadTeacherPDF').attr('disabled', 'disabled');
-        $.fileDownload('/~dev_rating/handler/admAccounts/getActivationForTeachers', {
+        $.fileDownload(URLdir + 'handler/admAccounts/getActivationForTeachers', {
             httpMethod: "POST",
             data: 
             {
@@ -66,7 +66,7 @@ $(function()
     
     $('body').on('click', '#downloadStudentPDF', function(e){
         $('#downloadStudentPDF').attr('disabled', 'disabled');
-        $.fileDownload('/~dev_rating/handler/admAccounts/getActivationForStudents', {
+        $.fileDownload(URLdir + 'handler/admAccounts/getActivationForStudents', {
             httpMethod: "POST",
             data: 
             {
diff --git a/~dev_rating/media/js/admin/students/add.js b/~dev_rating/media/js/admin/students/add.js
index 6fc2a40f260e19cf5bc7ac0fb4d1cb6f66bfcb45..5c1807f99981e1f0229eaaff1d80c09761b3f6be 100644
--- a/~dev_rating/media/js/admin/students/add.js
+++ b/~dev_rating/media/js/admin/students/add.js
@@ -30,7 +30,7 @@ $(function()
         $("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>');
         if (($('#gradeSelect option:selected').val()!= '0')) {
             
-            $.post('/~dev_rating/handler/admStudents/getStudyGroups', 
+            $.post(URLdir + 'handler/admStudents/getStudyGroups', 
             {
                 'facultyID': $('#facultySelect option:selected').val(),
                 'gradeNum': $('#gradeSelect option:selected').val()
@@ -59,7 +59,7 @@ $(function()
     
     $('#inputGroupSubmit').click(function(){
         $('#inputGroupSubmit').attr('disabled', 'disabled');
-        $.post('/~dev_rating/handler/admStudents/createStudent', 
+        $.post(URLdir + 'handler/admStudents/createStudent', 
         {
             'firstName': $('#firstName').val(),
             'secondName': $('#secondName').val(),
diff --git a/~dev_rating/media/js/admin/students/index.js b/~dev_rating/media/js/admin/students/index.js
index a47adc36567ea7071668ed70667aff949f785085..ddef79b9f9c5bb03e37634c38f9c60117a0780bc 100644
--- a/~dev_rating/media/js/admin/students/index.js
+++ b/~dev_rating/media/js/admin/students/index.js
@@ -19,12 +19,12 @@ $(function()
     $('#facultySelect').change(function(){
         if (($('#facultySelect option:selected').val()!= '0')) {
 
-                $("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>');
+                $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
                 $('#gradeSelect').removeAttr('disabled');
                 $('#studyGroupSelect').attr('disabled', 'disabled');
                 $("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>');
                 
-                $.post('/~dev_rating/handler/admStudents/getStudentsByFaculty', 
+                $.post(URLdir + 'handler/admStudents/getStudentsByFaculty', 
                 {
                     'facultyID': $('#facultySelect option:selected').val()
                 }, 
@@ -46,7 +46,7 @@ $(function()
         $("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>');
         if (($('#gradeSelect option:selected').val()!= '0')) {
             
-            $.post('/~dev_rating/handler/admStudents/getStudyGroups', 
+            $.post(URLdir + 'handler/admStudents/getStudyGroups', 
             {
                 'facultyID': $('#facultySelect option:selected').val(),
                 'gradeNum': $('#gradeSelect option:selected').val()
@@ -68,9 +68,9 @@ $(function()
     
     // Выбор группы
     $('#studyGroupSelect').change(function(){
-        $("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>');
+        $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
         if (($('#studyGroupSelect option:selected').val()!= '0')) {
-                $.post('/~dev_rating/handler/admStudents/getStudentsByStudyGroup', 
+                $.post(URLdir + 'handler/admStudents/getStudentsByStudyGroup', 
                 {
                     'studyGroupID': $('#studyGroupSelect option:selected').val()
                 }, 
diff --git a/~dev_rating/media/js/admin/teachers/add.js b/~dev_rating/media/js/admin/teachers/add.js
index 33627bac82b308dee56538a3c9f169dc0300b644..726557f3480111072820c64b0ac33ea95b6ca00a 100644
--- a/~dev_rating/media/js/admin/teachers/add.js
+++ b/~dev_rating/media/js/admin/teachers/add.js
@@ -10,7 +10,7 @@ $(function()
         if (($('#facultySelect option:selected').val()!= '0')) {
                 $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
                 $('#departmentSelect').attr('disabled', 'disabled');
-                $.post('/~dev_rating/handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
+                $.post(URLdir + 'handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
                     $.each(data, function(i){
                         $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
                     });
@@ -31,7 +31,7 @@ $(function()
     
     $('#inputGroupSubmit').click(function(){
         $('#inputGroupSubmit').attr('disabled', 'disabled');
-        $.post('/~dev_rating/handler/admTeachers/createTeacher', 
+        $.post(URLdir + 'handler/admTeachers/createTeacher', 
         {
             'firstName': $('#firstName').val(),
             'secondName': $('#secondName').val(),
diff --git a/~dev_rating/media/js/admin/teachers/index.js b/~dev_rating/media/js/admin/teachers/index.js
index 200119aebaddfe9e0cf81b1fb4f51d913fa0151d..5f90701def44f962e907b23d3c07dfddad195f97 100644
--- a/~dev_rating/media/js/admin/teachers/index.js
+++ b/~dev_rating/media/js/admin/teachers/index.js
@@ -16,13 +16,13 @@ $(function()
     $('#facultySelect').change(function(){
         if (($('#facultySelect option:selected').val()!= '0')) {
 
-                $("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>');
+                $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
                 $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
                 $('#departmentSelect').attr('disabled', 'disabled');
-                $.post('/~dev_rating/handler/admTeachers/getTeachersList', {'facultyID': $('#facultySelect option:selected').val(), 'departmentID': '0'}, function(data){
+                $.post(URLdir + 'handler/admTeachers/getTeachersList', {'facultyID': $('#facultySelect option:selected').val(), 'departmentID': '0'}, function(data){
                     $("#search_results").html(data);
                 });
-                $.post('/~dev_rating/handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
+                $.post(URLdir + 'handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
                     $.each(data, function(i){
                         $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
                     });
@@ -37,9 +37,9 @@ $(function()
 
     // Выбор кафедры
     $('#departmentSelect').change(function(){
-        $("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>');
+        $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
         if (($('#departmentSelect option:selected').val()!= '0')) {
-                $.post('/~dev_rating/handler/admTeachers/getTeachersList', {'facultyID': '0', 'departmentID': $('#departmentSelect option:selected').val()}, function(data){
+                $.post(URLdir + 'handler/admTeachers/getTeachersList', {'facultyID': '0', 'departmentID': $('#departmentSelect option:selected').val()}, function(data){
                         $("#search_results").html(data);
                 });
         }
diff --git a/~dev_rating/media/js/config.js b/~dev_rating/media/js/config.js
index 6aa1844597f2ffbfeb9708666cf39132445b7dc9..4ba9d44e64ea457bbe4501be419b68401f7624e9 100644
--- a/~dev_rating/media/js/config.js
+++ b/~dev_rating/media/js/config.js
@@ -1 +1 @@
-var URLdir = '/~dev_rating';
\ No newline at end of file
+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 ba7d8c42fc96adc78e082944544eebd6ce3625a0..7c7d2c2bf1f8112ce07275914463b7ccd1058425 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(
-			URLdir + '/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 fdb098e87c626dfa52d484bf05d59ff853a8e9d2..0177bfdb0a3907457e9266195ff452317d7439c5 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(
-			URLdir + '/handler/map/ChangeSubmoduleControlType',
+			URLdir + 'handler/map/ChangeSubmoduleControlType',
 			{
 				'SubmoduleID': ID,
 				'ControlType': ControlType
@@ -83,7 +83,7 @@ $(function() {
 	// Изменение макс. балла подмодуля
 	function ChangeSubmoduleMaxRate(ID, NewMaxRate) {
 		$.post(
-			URLdir + '/handler/map/ChangeSubmoduleMaxRate',
+			URLdir + 'handler/map/ChangeSubmoduleMaxRate',
 			{
 				'SubmoduleID': ID,
 				'MaxRate': NewMaxRate
@@ -160,7 +160,7 @@ $(function() {
 	// Поменять местами два модуля
 	function SwapModuleOrder(ModuleID1, ModuleID2) {
 		$.post(
-			URLdir + '/handler/map/SwapModuleOrder',
+			URLdir + 'handler/map/SwapModuleOrder',
 			{
 				'ModuleID1': ModuleID1,
 				'ModuleID2': ModuleID2
@@ -177,7 +177,7 @@ $(function() {
 	// Поменять местами два мероприятия
 	function SwapSubmoduleOrder(SubmoduleID1, SubmoduleID2) {
 		$.post(
-			URLdir + '/handler/map/SwapSubmoduleOrder',
+			URLdir + 'handler/map/SwapSubmoduleOrder',
 			{
 				'SubmoduleID1': SubmoduleID1,
 				'SubmoduleID2': SubmoduleID2
@@ -198,7 +198,7 @@ $(function() {
 	// Изменение предмета
 	$('.SelectSubject').change(function(){
 		$.post(
-			URLdir + '/handler/map/ChangeDisciplineSubject',
+			URLdir + 'handler/map/ChangeDisciplineSubject',
 			{
 				'DisciplineID': DisciplineID,
 				'SubjectID': $('.SelectSubject').val()
@@ -215,7 +215,7 @@ $(function() {
 	// Изменение курса
 	$('.SelectDisGrade').change(function(){ // SelectGrade совпадает с другим, поэтому SelectDisGrade
  		$.post(
-			URLdir + '/handler/map/ChangeDisciplineGrade',
+			URLdir + 'handler/map/ChangeDisciplineGrade',
 			{
 				'DisciplineID': DisciplineID,
 				'GradeID': $('.SelectDisGrade').val()
@@ -232,7 +232,7 @@ $(function() {
 	// Изменение контроля
 	$('.ExamType').change(function(){
 		$.post(
-			URLdir + '/handler/map/ChangeDisciplineControl',
+			URLdir + 'handler/map/ChangeDisciplineControl',
 			{
 				'DisciplineID': DisciplineID,
 				'Control': $('input:radio[name=ExamType]:checked').val()
@@ -249,7 +249,7 @@ $(function() {
 	// Изменение лекционных часов
 	$('.InputLectionCount').focusout(function(){
 		$.post(
-			URLdir + '/handler/map/ChangeDisciplineHours',
+			URLdir + 'handler/map/ChangeDisciplineHours',
 			{
 				'DisciplineID': DisciplineID,
 				'Hours': $('.InputLectionCount').val(),
@@ -267,7 +267,7 @@ $(function() {
 	// Изменение практических часов
 	$('.InputPracticeCount').focusout(function(){
 		$.post(
-			URLdir + '/handler/map/ChangeDisciplineHours',
+			URLdir + 'handler/map/ChangeDisciplineHours',
 			{
 				'DisciplineID': DisciplineID,
 				'Hours': $('.InputPracticeCount').val(),
@@ -364,7 +364,7 @@ $(function() {
 	$('.addModule').click(function(){
 		var OrderNum = $('.moduleGroup', '.moduleList').last().index('.moduleGroup') + 2;
 		$.post(
-			URLdir + '/handler/map/AddModule',
+			URLdir + 'handler/map/AddModule',
 			{
 				'DisciplineID': DisciplineID,
 			//	'OrderNum': OrderNum
@@ -422,7 +422,7 @@ $(function() {
 		var SubmodulesDIV = $(this).siblings('.subModules');
 		var OrderNum = SubmodulesDIV.children('.subModule').last().index() + 2;
 		$.post(
-			URLdir + '/handler/map/AddSubmodule',
+			URLdir + 'handler/map/AddSubmodule',
 			{
 				'ModuleID': ModuleID
 				//'OrderNum': OrderNum
@@ -465,7 +465,7 @@ $(function() {
 		var ChangeOrderModulesID = '[' + AttrID.get() + ']';
 		//
 		$.post(
-			URLdir + '/handler/map/DeleteModule',
+			URLdir + 'handler/map/DeleteModule',
 			{
 				'ModuleID': $(this).parent('div').parent('div').parent('div').attr('id'),
 				'SubmodulesID': JSONSubmodules,
@@ -503,7 +503,7 @@ $(function() {
 		var ChangeOrderSubmodulesID = '[' + AttrID.get() + ']';
 		//
 		$.post(
-			URLdir + '/handler/map/DeleteSubmodule',
+			URLdir + 'handler/map/DeleteSubmodule',
 			{
 				'SubmoduleID': $(this).parent('div').parent('div').attr('id'),
 				'CurrentSubmoduleOrder': CurrentSubmoduleOrder,
@@ -536,7 +536,7 @@ $(function() {
 		if (NewModuleName != '' && ModuleName != NewModuleName) {
 			var ID = $(this).parent('div').parent('div').parent('div').attr('id');
 			$.post(
-				URLdir + '/handler/map/ChangeModuleName',
+				URLdir + 'handler/map/ChangeModuleName',
 				{
 					'ModuleID': ID,
 					'ModuleName': NewModuleName
@@ -566,7 +566,7 @@ $(function() {
 		if (NewSubmoduleName != '' && SubmoduleName != NewSubmoduleName) {
 			var ID = $(this).parent('div').parent('div').attr('id');
 			$.post(
-				URLdir + '/handler/map/ChangeSubmoduleName',
+				URLdir + 'handler/map/ChangeSubmoduleName',
 				{
 					'SubmoduleID': ID,
 					'SubmoduleName': NewSubmoduleName
@@ -631,7 +631,7 @@ $('.AttachGroupButton').click(function(){
 	var StudyGroupID = $('.SelectStudyGroup').val();
 	var StudyGroupName = $(".SelectStudyGroup option:selected").text();
 	$.post(
-		URLdir + '/handler/map/BindGroup',
+		URLdir + 'handler/map/BindGroup',
 		{
 			'StudyGroupID': StudyGroupID,
 			'DisciplineID': DisciplineID
@@ -652,7 +652,7 @@ $('.AttachedGroupsList').on('click', '.UnbindGroup', function(){
 	var StudyGroupID = $(this).parent().attr('id');
 	var GroupDIV = $(this).parent();
 	$.post(
-		URLdir + '/handler/map/UnbindGroup',
+		URLdir + 'handler/map/UnbindGroup',
 		{
 			'StudyGroupID': StudyGroupID,
 			'DisciplineID': DisciplineID
@@ -711,7 +711,7 @@ function CallSearchStudents() {
 	if ($('.InputStudentName ').val() > 0)
 		Name = ($('.InputStudentName ').val()).split(' ');
 	$.post(
-		URLdir + '/handler/map/SearchStudents',
+		URLdir + 'handler/map/SearchStudents',
 		{
 			'GradeID': $('.SelectGrade').val(),
 			'GroupN': $('.SelectStudyGroup').val(),
@@ -740,7 +740,7 @@ function CallSearchStudents() {
 
 $('.SelectGrade').change(function(){
 	$.post(
-		URLdir + '/handler/map/GetStudyGroups',
+		URLdir + 'handler/map/GetStudyGroups',
 		{
 			'FacultyID': FacultyID,
 			'GradeID': $('.SelectGrade').val()
@@ -816,7 +816,7 @@ $('.StudentsList').on('click', '.Action_BindStudent', function(){
 	var thisObj = $(this);
 	var ID = $(this).parent().attr('id');
 	$.post(
-		URLdir + '/handler/map/BindStudent',
+		URLdir + 'handler/map/BindStudent',
 		{
 			'StudentID': ID,
 			'DisciplineID': DisciplineID
@@ -837,7 +837,7 @@ $('.StudentsList').on('click', '.Action_BindStudentFromSearch', function(){
 	var thisObj = $(this);
 	var ID = $(this).parent().attr('id');
 	$.post(
-		URLdir + '/handler/map/BindStudent',
+		URLdir + 'handler/map/BindStudent',
 		{
 			'StudentID': ID,
 			'DisciplineID': DisciplineID
@@ -865,7 +865,7 @@ $('.StudentsList').on('click', '.Action_UnbindStudent', function(){
 		.addClass('StatusUnbind');
 	var ID = $(this).parent().attr('id');
 	$.post(
-		URLdir + '/handler/map/UnbindStudent',
+		URLdir + 'handler/map/UnbindStudent',
 		{
 			'StudentID': ID,
 			'DisciplineID': DisciplineID
@@ -910,7 +910,7 @@ function CallSearchTeachers(){
 	var Name = [];
 	Name = ($('.InputTeacherName ').val()).split(' ');
 	$.post(
-		URLdir + '/handler/map/SearchTeachers',
+		URLdir + 'handler/map/SearchTeachers',
 		{
 			'FacultyID': $('.SelectFaculty').val(),
 			'DepartmentID': $('.SelectDepartment').val(),
@@ -938,7 +938,7 @@ function CallSearchTeachers(){
 // Выборка кафедр
 $('.SelectFaculty').change(function(){
 	$.post(
-		URLdir + '/handler/map/GetDepartments',
+		URLdir + 'handler/map/GetDepartments',
 		{
 			'FacultyID': $('.SelectFaculty').val()
 		},
@@ -987,7 +987,7 @@ $('.TeachersList').on('click', '.Action_UnbindTeacher', function(){
 		.remove();
 	var ID = $(this).parent().attr('id');
 	$.post(
-		URLdir + '/handler/map/UnbindTeacher',
+		URLdir + 'handler/map/UnbindTeacher',
 		{
 			'BindingTeacher': ID,
 			'DisciplineID': DisciplineID
@@ -1009,7 +1009,7 @@ $('.TeachersList').on('click', '.Action_BindTeacher', function(){
 	var ID = $(this).parent().attr('id');
 	var Name = $(this).siblings('.Name').text();
 	$.post(
-		URLdir + '/handler/map/BindTeacher',
+		URLdir + 'handler/map/BindTeacher',
 		{
 			'BindingTeacher': ID,
 			'DisciplineID': DisciplineID
diff --git a/~dev_rating/media/js/discipline/general.js b/~dev_rating/media/js/discipline/general.js
index 2a62b46fa2f83d3bbc018c0bbefa3f3ca12f4842..5c5041d31b8a88c3adbb9e0c6aa8fb9a07f0312d 100644
--- a/~dev_rating/media/js/discipline/general.js
+++ b/~dev_rating/media/js/discipline/general.js
@@ -8,7 +8,7 @@ $(function() {
 		if (parseInt($('.SelectFaculty option:selected').val()) > 0)
 			var Faculty = $('.SelectFaculty option:selected').val(); 
 		$.post(
-			URLdir + '/handler/map/GetSubjectsList',
+			URLdir + 'handler/map/GetSubjectsList',
 			{
 				'FacultyID': Faculty
 			},
diff --git a/~dev_rating/media/js/errDialog.js b/~dev_rating/media/js/errDialog.js
index acee99d60d1f91513e9d9eeeaefe12fd65213195..0fbebdff2159789380dfe2b4f8de35725d57241c 100644
--- a/~dev_rating/media/js/errDialog.js
+++ b/~dev_rating/media/js/errDialog.js
@@ -18,7 +18,7 @@ $(document).ready(function() {
 
 		$.ajax({
 				type: "POST",
-				url: "/~dev_rating/~dev_rating/handler/baseDialog/returnDialogHtml",    //////////// ------------------------- Костыль
+				url: URLdir + "handler/baseDialog/returnDialogHtml",    //////////// ------------------------- Костыль
 				data: {},
 				success: function(html){ 
 					data = html;
@@ -29,7 +29,7 @@ $(document).ready(function() {
 
 						if(!checkMessages)
 						{
-							$.getJSON("/~dev_rating/~dev_rating/handler/errMessages/getRequests", {}, function(data){			//----------------------- Костыль
+							$.getJSON(URLdir + "handler/errMessages/getRequests", {}, function(data){			//----------------------- Костыль
 								
 								// var date = data['Date'];
 								// var text = data['Description'];
@@ -70,7 +70,7 @@ $(document).ready(function() {
 
 								$.ajax({
 										type: "POST",
-										url: "/~dev_rating/~dev_rating/handler/errMessages/createRequest",             //----------------------- Костыль
+										url: URLdir + "handler/errMessages/createRequest",             //----------------------- Костыль
 										data: {title: mesTitle, text: mesText},
 										success: function(html){ 
 											$('#errDialog').dialog("close");
diff --git a/~dev_rating/media/js/profileSettings.js b/~dev_rating/media/js/profileSettings.js
index 41de2da86e255f9be9c436c383ade68ccdf6ebfe..3a7594d214a620903942995fc0dd7ce4967c12be 100644
--- a/~dev_rating/media/js/profileSettings.js
+++ b/~dev_rating/media/js/profileSettings.js
@@ -9,7 +9,7 @@ $(function()
         if (($('#facultySelect option:selected').val()!= '0')) {
                 $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
                 $('#departmentSelect').attr('disabled', 'disabled');
-                $.post('/~dev_rating/handler/settings/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
+                $.post(URLdir + 'handler/settings/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
                     $.each(data, function(i){
                         $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
                     });
@@ -30,7 +30,7 @@ $(function()
     
     $('#inputGroupSubmit').click(function(){
         $('#inputGroupSubmit').attr('disabled', 'disabled');
-        $.post('/~dev_rating/handler/settings/editProfile', 
+        $.post(URLdir + 'handler/settings/editProfile', 
         {
             'firstName': $('#firstName').val(),
             'secondName': $('#secondName').val(),
diff --git a/~dev_rating/media/js/rating.js b/~dev_rating/media/js/rating.js
index 410d3e8402f48ca2d3e23f64c575c8ba563851f7..2fc5b360a0e69ee70aff1f32b39cc2b5d12787d1 100644
--- a/~dev_rating/media/js/rating.js
+++ b/~dev_rating/media/js/rating.js
@@ -47,7 +47,7 @@ $(function() {
 		if (parseInt(NewRate) <= parseInt(MaxRate)) 
 		{
 			$.post(
-				URLdir + '/handler/rating/setRate',
+				URLdir + 'handler/rating/setRate',
 				{	
 					'student': StudentID,
 					'submodule': SubmoduleID,
diff --git a/~dev_rating/media/js/settings.js b/~dev_rating/media/js/settings.js
index 35e1c8339e3d087cbb95a45ea234c7aadcfea730..d5e4df86bba0f94a3e8e066bf67dc3bc15690889 100644
--- a/~dev_rating/media/js/settings.js
+++ b/~dev_rating/media/js/settings.js
@@ -25,7 +25,7 @@ $(function() {
 		else checkInput['login'] = false;
 		
 		if (checkInput['login'] == true) 
-			$.post('/~dev_rating/handler/settings/changeLogin', {'login': $('.inputLogin').val()},
+			$.post(URLdir + 'handler/settings/changeLogin', {'login': $('.inputLogin').val()},
 				function(data){
 					data = $.parseJSON(data);
 					if(data.success === true) {
@@ -65,7 +65,7 @@ $(function() {
 			checkInput['confirmPass'] = false;
 			
 		if (checkInput['confirmPass'] == true)
-			$.post('/~dev_rating/handler/settings/changePassword',
+			$.post(URLdir + 'handler/settings/changePassword',
 				{
 					'old_password': $('.inputCurrentPass').val(),
 					'password': $('.inputNewPass').val(),
diff --git a/~dev_rating/media/js/sign.js b/~dev_rating/media/js/sign.js
index 755faf7b9956621879ec22081cbbe52293190bdc..b4088162d122cb2cf2fdc69c3247ac580aeb3496 100644
--- a/~dev_rating/media/js/sign.js
+++ b/~dev_rating/media/js/sign.js
@@ -3,7 +3,7 @@ $(function()
     $('#signin_b').click(function()
     { 
         
-        $.post('/~dev_rating/handler/sign/in', {'login': $('#login').val(), 'password': $('#password').val()},
+        $.post(URLdir + 'handler/sign/in', {'login': $('#login').val(), 'password': $('#password').val()},
         function(data)
         {
             data = $.parseJSON(data);
@@ -23,7 +23,7 @@ $(function()
     $('#signup_b').click(function()
     {
         
-        $.post('/~dev_rating/handler/sign/up', 
+        $.post(URLdir + 'handler/sign/up', 
             {'activation_code': $('#activation_code').val(), 
             'login': $('#login').val(), 
             'password': $('#password').val(),
diff --git a/~dev_rating/media/js/student/index.js b/~dev_rating/media/js/student/index.js
index 1b6192a4c21a2286325804d844973d6fdb51a4af..b82424eca57d5a0b15d25ca0f7d129dc3b942426 100644
--- a/~dev_rating/media/js/student/index.js
+++ b/~dev_rating/media/js/student/index.js
@@ -1,7 +1,7 @@
 $(function() {
     $('#openHelp').click(function()
     {
-        $.get('/~dev_rating/handler/GetHelp/indexStudent', {}, 
+        $.get(URLdir + 'handler/GetHelp/indexStudent', {}, 
         function(data)
         {
             wnd.open({title: "Цветовая схема", content: data, width: 700});