Devam Ediyor

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.

Beceriler: Linux, Perl, Sistem Yöneticisi, Web Güvenliği, XML

Daha fazlasını görün: 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

İşveren Hakkında:
( 18 değerlendirme ) Waltham, United States

Proje NO: #137494

Seçilen:

devaka

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

0 gün içinde 30$ USD
(11 Değerlendirme)
4.1

2 freelancer bu iş için ortalamada 30$ teklif veriyor

TakeReal

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

1 gün içinde 30$ USD
(216 Değerlendirme)
6.0