I'll assume you are just testing some code and trying to learn. In
that case, I think you just overlooked a missed else in there (better
indention might help see that):
if (!strcmp(r->uri,"/tiago/precisas/index1.htm")){
r->uri = "/tiago/imprecisas/index1.htm";
}
/* Insert else here */
else {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,"print_test2: %s",
r->uri);
return HTTP_NOT_FOUND;
}
Or it is going to hit HTTP_NOT_FOUND on match or not.
-B
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]