Welcome Guest, Not a member yet? Register   Sign In
.htaccess - How to exclude all PNG(s)
#1

[eluser]daweb[/eluser]
Hello everybody,

excuse me bad english first.

I have these rules in my .htaccess (Codeigniter 1.7.2):

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|folder1|htm|captcha|assets|folder2|robots\.txt|favicon\.ico|sitemap\.xml|a-static-file\.html|folder3)
RewriteRule ^(.*)$ /index.php/$1 [L]

I need to exclude all png(s) files from rewriting, but I can't be able to do that.

I did try to add

Code:
|png|
and also
Code:
|*\.png|
but both solutions doesn't works, they returns to me an Internal Server Error.

May I ask your help?

Thank you
#2

[eluser]P.T.[/eluser]
(.*)\.png
#3

[eluser]daweb[/eluser]
You solve my problem.

Thank you P.T.!
#4

[eluser]P.T.[/eluser]
Nice. You're welcome Smile




Theme © iAndrew 2016 - Forum software by © MyBB