Re: Not found regex

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

 



Manoj Singh wrote:
Hi All,
Thanks for your replies.

Actually i am placing this regex in .htaccess file.
Here i have to redirect all the request to https if it is not for ogg file.

The complete code is:
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^.+\.ogg$ //Need some tweaking here. I know this
code works just opposite. Need your help here.
RewriteRule .* https://%{HTTP_HOST}/ [L]

Hope this helps to understand the problem.

Best Regards
Manoj Singh

It will be part of the condition syntax not the regex:

RewriteCond %{REQUEST_URI} !^.+\.ogg$

Maybe better as (not tested):

RewriteCond %{REQUEST_URI} !^[^\.]*\.ogg$

-Shawn

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux