Remove useless variable, add the variable's functinality to .htaccess
instead
This commit is contained in:
parent
d670a55a61
commit
22321311e7
|
@ -6,3 +6,7 @@ RewriteRule ^ /%1 [NE,L,R]
|
|||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.+)$ /index.php/$1 [L]
|
||||
|
||||
<FilesMatch "config.php">
|
||||
Deny from All
|
||||
</FilesMatch>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php if (!defined('W2APP')){ die('No direct access.'); }
|
||||
<?php
|
||||
/*
|
||||
* W2
|
||||
*
|
||||
|
|
10
index.php
10
index.php
|
@ -1,15 +1,11 @@
|
|||
<?php
|
||||
define('W2APP', true);
|
||||
/*
|
||||
* W2
|
||||
* spmenu-wiki
|
||||
*
|
||||
* Copyright (C) 2007-2011 Steven Frank <http://stevenf.com/>
|
||||
* Copyright (C) 2023 speedie <speedie@speedie.site>
|
||||
*
|
||||
* Code may be re-used as long as the above copyright notice is retained.
|
||||
* See README.txt for full details.
|
||||
*
|
||||
* Written with Coda: <http://panic.com/coda/>
|
||||
*
|
||||
* See LICENSE file for copyright and license details.
|
||||
*/
|
||||
|
||||
// Install PSR-4-compatible class autoloader
|
||||
|
|
Loading…
Reference in a new issue