| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2007
Posts: 460
![]() ![]() ![]() | |
| | |
| | #2 (permalink) |
| NamePros Regular Join Date: Jul 2007 Location: UK
Posts: 394
![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hi, The following should work. It first rewrites to the resized image, then if that does not exist, rewrites to the PHP script. Code: RewriteRule ^images/([^/]+_[0-9]+\.(gif|jpg|jpeg|png)$ images/resized/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^images/resized/([^/]+)(_[0-9]+)(\.(gif|jpg|jpeg|png))$ img.php?img=$1&ext=$4&size=$3&type=$2&height=0&con=i [L]
__________________ |
| | |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Mar 2007
Posts: 460
![]() ![]() ![]() | GREAT! Thank you very much! ????: NamePros.com http://www.namepros.com/showthread.php?t=621778
__________________ RodeoArena.com for Sale, PM for Offers |
| | |