Forum Moderators: phranque
RewriteRule ^abc/$ ../domain.com/abc/def/?hl=de [L,QSA] It works on my local Apache 1.3, but doesn't work on my dedicated Apache 2.2.2. It's giving me the following error message:
Bad RequestYour browser sent a request that this server could not understand.
Does anybody know why?
The paths are exactly the same on the both servers.
Also, your server should not allow rewriting above the Document root. If it does so, that is a potentially-serious security problem.
Jim
thanks for the quick reply.
All I'm getting from the error log is this:
[Mon Oct 02 08:27:46 2006] [error] [client #*$!.#*$!.#*$!.#*$!] Invalid URI in request GET /abc/ HTTP/1.1
[Mon Oct 02 08:27:46 2006] [error] [client #*$!.#*$!.#*$!.#*$!] File does not exist: /home/www/sub1.domain.com/favicon.ico
I don't think it's a loop, because the RewriteRule is written in the .htaccess of /home/www/sub1.domain.com/, and I'm trying to access /home/www/domain.com/ from it.
All I actually need is reading above the Document root. Is this still a security flaw if I'm the only person that is using this server? Is there a way to only allow it to individual directories?