I’m using PHP, MYSQL
I’ve done some research and found out that the relative links are affected by the way the url is written (which I kind of figure it out by then anyway, out of instinct).
My images are held in the root folder of the site like this images/category/image1.jpg
old url: http://www.mysite.com/mypage.php?this=1&that=2
new url: http://www.mysite.com/keywords/this/that
How can I make the relative path to take into consideration the old URL or is there a way to redirect all my images requests to my images folder (done maybe in .htaccess also). Or any other solution.
i’m keen on relative paths, no absolute path solutions please
Put this link above the
RewriteRuleline so existing files aren’t affected by the rule:There are others you can use:
More info at http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html