httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrea <apachel...@libero.it>
Subject Re: [users@httpd] RewriteRules
Date Tue, 09 Sep 2003 05:42:44 GMT
Hi,

try to add the PT flag at the end.
So:
RewriteRule ... [PT]

When using Alias or ScriptAlias (cgi-bin) you will have to use the PT 
flag too.


Hope It Helped,
Thanks,
Mr Andrea


Warhurst, SI (Spencer) wrote:
> Hi
> 
> This is my first foray into rewrite rules, and I'm stuck on something.
> 
> I want a user to be able to type in their browser:
> 
> http://www.myserver.com/messages/listname/0703/10
> 
> and the server to translate that to:
> 
> http://www.myserver.com/cgi-bin/wa.exe?A2=ind0307&L=listname&T=0&F=&S=&P=10
> 
> I made the following adjustments/entries into httpd.conf:
> 
>   LoadModule rewrite_module modules/mod_rewrite.so
> 
>   # Configure ReWrite
>   RewriteEngine on
>   RewriteLog "d:/apache2/logs/rewrite.log"
>   RewriteRule ^/messages/(.+?)/(\d{2})(\d{2})/(\d+)
> /cgi-bin/wa.exe?A2=ind$3$2&L=$1&T=0&F=&S=&P=$4
> 
> However, when I try to go to a message with the URL it responds:
> 
> "Bad request!
> Your browser (or proxy) sent a request that this server could not
> understand. 
> If you think this is a server error, please contact the blah
> Error 400"
> 
> There is nothing in rewrite log and the access log just has the 400 message
> in.
> 
> It's probably something simple, but can you suggest what?
> 
> Thanks
> 
> --
> Spencer
> 
> ---------------------------------------------------------------------
> 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
> 
> 


---------------------------------------------------------------------
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


Mime
View raw message