Re: Frustrated with rewrite rule, please help...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thomas,
 
Thanks for the reply.
 
Merry Christmas btw..
 
Twiki pages all start with an uppercase word (usuallay two words with the space removed like MerryChristmas) so the [A-Z].* "should" catch it but I must be doing something wrong as it never does and I don't even see anything in the logs so I am at a loss as to where the issue is...
 
Phil

 
On 25/12/2007, Thomas Hart <tomhart@xxxxxxxxxxx> wrote:
Phil Wild wrote:
> Hi All,
>
> I am having trouble with my first attempts at using rewrite rules
> under apache. I am not sure where I am going wrong and have spent the
> morning googling to try and figure this out.
>
> I want to rewrite http://www.site.org/doc/bin/view/TWiki/WebHome so it
> looks like http://www.site.org/doc/WebHome
> <http://www.site.org/doc/WebHome > where WebHome changes
>
> I have the following in my conf file
>
>
> ScriptAlias /doc/bin "/opt/twiki/bin"
> Alias /doc/pub "/opt/twiki/pub"
> Alias /doc "/opt/twiki"
>
> RewriteEngine On
> ReWriteLogLevel 9
> <Directory "/opt/twiki/bin">
> RewriteRule ^doc/([A-Z].*) /doc/bin/view/$1 [PT] [L]
> .....
>
> Any clues as to what I am doing wrong?
> The error log does not contain any log entries relating to rewriting
> so I think I am completely missing the mark...
>
> Cheers
>
> Phil
>
> --
> Tel: 0400 466 952
> Fax: 0433 123 226
> email: philwild@xxxxxxxxx <mailto:philwild@xxxxxxxxx>
I'm no regex expert, but shouldn't

([A-Z].*)

be

([A-z].*)

I think you're excluding the lowercase characters

--
Tom Hart
IT Specialist
Cooperative Federal
723 Westcott St.
Syracuse, NY 13210
(315) 471-1116 ext. 202
(315) 476-0567 (fax)


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Tel: 0400 466 952
Fax: 0433 123 226
email: philwild@xxxxxxxxx
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux