php - URL Rewrite, browser can't find my thumbnails -



php - URL Rewrite, browser can't find my thumbnails -

i'm using php, mysql i've done research , found out relative links affected way url written (which kind of figure out anyway, out of instinct). images held in root folder of site images/category/image1.jpg old url: www.mysite.com/mypage.php?this=1&that=2 new url: www.mysite.com/keywords/this/that

how can create relative path take consideration old url or there way redirect images requests images folder (done maybe in .htaccess also). or other solution.

i'm keen on relative paths, no absolute path solutions please

put link above rewriterule line existing files aren't affected rule:

rewritecond %{request_filename} !-f

there others can use:

rewritecond %{request_filename} !-d # not directory rewritecond %{request_filename} !-l # not symlink

more info @ http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

php url-rewriting

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -