Em Andamento

Need a .htaccess RewriteRule

I have a site containing both full-size images as well as thumbnails of them. The images and their thumbnails live in the same directories.

I need a .htaccess rewrite rule that rewrites for:

http://SomeDirectory/Some-Subdirectory/[url removed, login to view]

but not:

http://SomeDirectory/Some-Subdirectory/[url removed, login to view]

My current rule is:

RewriteRule ^(SomeDirectory.*)/(.*.[jJ].*)$ /[url removed, login to view]$1&i=$2

The problem is that it rewrites for thumbnails as well as the full-sized images. I currently work around this in [url removed, login to view], but would rather not waste system resources invoking a php page for every thumbnail.

Habilidades: Linux, Perl, Administrador do Sistema, Segurança na rede, XML

Ver mais: rewriterule jpg, htaccess rewriterule, htaccess rewriterule subdirectory, rewriterule thumb, htaccess rewrite rule, rewriterule allow thumbnails, rewrite rule creator, htaccess rewrite images, watermark htaccess, htaccess rewrite creator, rewriterule, rewriterule htaccess subdirectory, php watermark htacces without thumb, htaccess rewriterule thumb, rewriterule images, rewriterule watermark, rewriterule jpg thumb, jpg htaccess thumb, rewriterule htaccess thumbnail, rewriterule watermark image, htaccess allow type jpg pmb, htaccess jpg perl, htaccess rewrite php creator, rewrite rule htaccess jpg, protect image subdir viewing

Acerca do Empregador:
( 18 comentários ) Waltham, United States

ID do Projeto: #137494

Premiar a:

devaka

Try that: RewriteRule ^(SomeDirectory.*)/([^/]+(?!thumb).jpg)$ /[url removed, login to view]$1&i=$2

$30 USD em 0 dias
(11 Avaliações)
4.1

2 freelancers estão ofertando em média $30 para este trabalho

TakeReal

Give me FTP access and I will rewrite ".htaccess" today. Thumbnails will be excluded from RewriteRules

$30 USD em 1 dia
(216 Comentários)
6.0