You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nikos Gatsis <ni...@qbit.gr> on 2003/11/25 23:05:31 UTC
[users@httpd] Mod_rewrite problem - SOLVED
Thanx anyone for help
I solved it restrict rewrite rule in DocumentRoot's directory
...
<Directory /home/http/nikos/horc>
RewriteEngine On
RewriteRule ^/atricles/([^/]+)/([^/]+)/([^/]+)\.html$ /contents/profil.htm
[R]
</Directory>
....
Wouter I need [R] because I have request for unknown files in /articles...
directory, so I redirect them to a particular file
Now everything is fne
Thanx again
<VirtualHost 193.58.186.229>
> > ServerAdmin nikos@qbit.gr
> > DocumentRoot /home/http/nikos/horc
> > RewriteEngine On
> > RewriteRule ^/atricles/([^/]+)/([^/]+)/([^/]+)\.html$
> > /contents/profil.htm [R]
> > <Directory /home/http/nikos/horc/contents/files>
> > Options None
> > </Directory>
> > ServerName www.horc.gr
> > ErrorLog /home/http/nikos/horc/horc_error_log
> > CustomLog /home/http/nikos/horc/horc_access_log common
> > RewriteLogLevel 1
> > RewriteLog /home/http/nikos/horc/rewrite_log
> > </VirtualHost>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org