Re: Regular Expressions *gargl*
| From: | David Robley | Date: | Wed, 26 Jul 2000 02:42:59 +0000 |
| Subject: | Re: Regular Expressions *gargl* | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8190@lists.php.net to get a copy of this message | ||
On 26 Jul, Thomas Angst wrote:
> Hi,
>
> I tried to use the apache's mod_rewrite to send all files with the ending
> .my to the specified php script parse.php. I used the following arguments in
> the httpd.conf:
>
> RewriteEngine on
> RewriteRule ^(\*.my) /parse.php
>
> but it won't work
>
> mod_rewrite is working, cause this:
>
> RewriteRule ^(.*) /parse.php
> is working, but for all files. As a non regex-pert, can someone help me to
> get the correct pattern?
>
> thanks
> Thomas
Rasmus showed an example earlier for files ending with .inc which was
".*\.inc$"
Perhaps if you try
".*\.my$"
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA