I am trying to improve my url format, currently i have something like
test.php?variable1=value1&variable2=value2
and I want it to be like
test.php/variable1/value1/variable2/value2/
I have the following rewrite rule,
RewriteRule (.*?\.php)(\?[^/]*)?/([^/]*)/([^/]*)(.*) $1(?2$2&:\?)$3=$4$5 [NS,I]
but the following is my problem.
I have relative paths to different resources including css, images, etc.
I corrected both my css and image links to web server absolutes ... so from ../images/test.gif to /images/test.gif
This corrected the IIS linking problem, but when I view the url of the image, I am seeing soemthing like
/test.php/variable1/value1/images/art_tabblue_left.gif
Is there a better rewrite rule to handle these type of dynamic URL that doesn't break resource links?
Or will I have to handle each file individually?
test.php?variable1=value1&variable2=value2
and I want it to be like
test.php/variable1/value1/variable2/value2/
I have the following rewrite rule,
RewriteRule (.*?\.php)(\?[^/]*)?/([^/]*)/([^/]*)(.*) $1(?2$2&:\?)$3=$4$5 [NS,I]
but the following is my problem.
I have relative paths to different resources including css, images, etc.
I corrected both my css and image links to web server absolutes ... so from ../images/test.gif to /images/test.gif
This corrected the IIS linking problem, but when I view the url of the image, I am seeing soemthing like
/test.php/variable1/value1/images/art_tabblue_left.gif
Is there a better rewrite rule to handle these type of dynamic URL that doesn't break resource links?
Or will I have to handle each file individually?