Ekstra menu / profil indhold her
Dette er filen test.php
Options FollowSymLinks
Options -MultiViews
RewriteEngine on
ErrorDocument 404 http://www.kranger.net/404
RewriteCond %{HTTP_HOST} ^kranger.net [NC]
RewriteRule ^(.*)$ http://www.kranger.net/$1 [L,R=301]
# RewriteCond %{HTTP_HOST} !^www\.
# RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# Above lines will result in: but will not work proberly on subdomains if hosted by root folder
##########################################################
# RewriteCond %{HTTP_HOST} ^kranger.net [NC] #
# RewriteRule ^(.*)$ http://www.kranger.net/$1 [L,R=301] #
##########################################################
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^([^/]*)$ /index.php\?p=$1 [QSA,L]
1 <?php
2 function main() {
3 include 'functions/linkarray.php';
4 if (isset ( $page )) {
5 if (in_array ( $page, $pages )) {
6 $page .= '.php';
7 include ($page);
8 } elseif (in_array ( $page, $dbkald )) {
9 include 'options.php';
10 } else {
11 include ("404.php");
12 }
13 } else {
14 include ("frontpage.php");
15 }
16 }
17 ?>