Nieuw lid |
|
Dus, als ik je goed begrijp:
include(''.$_SERVER['DOCUMENT_ROOT'].'urls/'.$_GET['page'].'.php');
FangorN, bedankt!
Edit: hierboven werd gepraat over <directory "jouwdirectory>
Wat is jouwdirectory?
EDIT2:
Het moet zijn "$path/www" denk ik. Verder heb ik ook dit in mijn httpd.conf:
<Directory "${path}/www">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks Includes
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<Directory "${path}/www"> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks Includes # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory>
Maar mijn mod_rewrite werkt nog steeds niet op mijn lokale server...
Dit is mijn htacces:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^urls/(.*)(/)?$ index.php?page=$1 [L]
Options +FollowSymLinks RewriteEngine On RewriteRule ^urls/(.*)(/)?$ index.php?page=$1 [L]
EDIT 3:
Opgelost. Mijn bestand heette blabla.htaccess ipv .htaccess. Ik dacht altijd dat de bestandsnaam van dat bestandje niet uitmaakte... kutzooi |