updated htaccess and routing

This commit is contained in:
Ricsi
2017-02-12 11:01:35 +01:00
parent 44b96b0073
commit 38458f834a
4 changed files with 8 additions and 5 deletions

2
.gitignore vendored
View File

@@ -2,3 +2,5 @@
php_errors.log php_errors.log
/_image /_image
/_developer /_developer
/jQuery
/ckeditor

View File

@@ -10,7 +10,7 @@ RewriteRule ^\/?(_developer)\/([a-zA-Z0-9\.\_]*) _developer/$2 [NC]
RewriteRule ^\/?(_css\/)([a-zA-Z0-9_]+)\.css$ _css/$2.css [NC] RewriteRule ^\/?(_css\/)([a-zA-Z0-9_]+)\.css$ _css/$2.css [NC]
RewriteRule ^\/?(_ajax\/)([a-zA-Z0-9_]+)\.php$ _ajax/$2.php [NC,L] RewriteRule ^\/?(_ajax\/)([a-zA-Z0-9_]+)\.php$ _ajax/$2.php [NC,L]
RewriteCond %{REQUEST_URI} !^/ckeditor/?$
RewriteRule ^([a-z_]+)\/?([0-9a-z_]*)\/?([0-9a-z_]*)$ index.php?page=$1&subpage=$2&id=$3 [NC,L] RewriteRule ^([a-z_]+)\/?([0-9a-z_]*)\/?([0-9a-z_]*)$ index.php?page=$1&subpage=$2&id=$3 [NC,L]

View File

@@ -1,7 +1,7 @@
<?php <?php
ini_set('display_errors', 1); ini_set('display_errors', 1);
ini_set('display_startup_errors', 1); //ini_set('display_startup_errors', 1);
error_reporting(E_ALL); error_reporting(E_ALL);
@@ -56,8 +56,8 @@ $days = array(
//SMARTY BEÁLLÍTÁSA //SMARTY BEÁLLÍTÁSA
//require('../Smarty/Smarty.class.php'); //require('../Smarty/Smarty.class.php');
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') require('../Smarty/Smarty.class.php'); require('../Smarty/Smarty.class.php');
else $sql = require('Smarty/Smarty.class.php');
$smarty = new Smarty(); $smarty = new Smarty();

View File

@@ -13,7 +13,8 @@ setlocale(LC_ALL, 'hu_HU');
<style> <style>
</style> </style>
<script src="/jquery-3.1.1.min.js"></script> <script src="/jQuery/jquery-3.1.1.min.js"></script>
<script src="/ckeditor/ckeditor.js"></script>
<meta charset="utf-8"> <meta charset="utf-8">