updated htaccess and routing
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
||||
php_errors.log
|
||||
/_image
|
||||
/_developer
|
||||
/jQuery
|
||||
/ckeditor
|
||||
|
||||
@@ -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 ^\/?(_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]
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
//ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ $days = array(
|
||||
|
||||
//SMARTY BEÁLLÍTÁSA
|
||||
//require('../Smarty/Smarty.class.php');
|
||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') require('../Smarty/Smarty.class.php');
|
||||
else $sql = require('Smarty/Smarty.class.php');
|
||||
require('../Smarty/Smarty.class.php');
|
||||
|
||||
|
||||
$smarty = new Smarty();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user