mod_rewrite configuration

mod_rewrite configuration

am 07.08.2007 11:33:26 von loozack

English is not my native language, but I hope that I will be apprehended

I try to learn to use mod_rewite but probably I have omitted some detail
in configuration of server. I have read some docs but can not find
solution. I use AppServ at localhost on windows xp.

in httpd.conf I have changed registrations and now this file
registrations are:
LoadModule rewrite_module modules/mod_rewrite.so
and further:
DocumentRoot "C:/AppServ/www"

Options FollowSymLinks ExecCGI Indexes
AllowOverride All
Order allow,deny
Allow from all
Satisfy all
RewriteEngine on



Options Indexes FollowSymLinks MultiViews ExecCGI

AllowOverride All

Order allow,deny
Allow from all
RewriteEngine on



in .htaccess i have write:
RewriteEngine on
RewriteRule ^/([^-]+)$ index.php?a=$1 [L]

Should I make what else? Or what make I incorrectly?