Door
Bram Z
op 16-07-2004 23:18
gewijzigd op 18-07-2004 09:36
2.518 views
Hey ik heb een probleem met mod wrewrite, dit is men script:
//.htaccess
RewriteEngine On
RewriteRule ^Topic/(.*)/ topic.php?id=$1
//topic.php
<?php
echo $_GET['id'];
?>
en nu doe ik dit dus Topic/1
Maar er staat toch geen output :S doe ik iets verkeerd ??
alvast bedankt.
Maar mod rewrite werkt alleen als ik dit doen, http://localhost/Index
als er een bestand bestaad met de naam index.php,
maar de mod rewrite voor .htaccess werkt no niet :(.
Ziehier:
#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
[ knip ]
#
# 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
[ knip ]
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory "C:/Apache/users">
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
[ knip ]
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
Alias /icons/ "C:/Apache/icons/"
<Directory "C:/Apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
[ knip ]
# This Alias will project the on-line documentation tree under /manual/
# even if you change the DocumentRoot. Comment it if you don't want to
# provide access to the on-line documentation.
#
Alias /manual/ "C:/Apache/htdocs/manual/"
<Directory "C:/Apache/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
[ knip ]
# "C:/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Dit zijn alle allowoverrides in mijn httpd.conf ...