Urls to my website were kind of odd/ugly so I added a rewriting url to make it go from
wxw.website.x/index.php?fo=43534tgreger43&f=lalalalala.ext
to
wxw.website.x/dl/43534tgreger43/lalalalala.ext
It works just fine, but it messes up the template because img links etc. are relative.
So what used to be:
wxw.website.x/images/logo.gif
in the old url, is now:
wxw.website.x/dl/43534tgreger43/images/logo.gif
Can anyone help me fix this?
wxw.website.x/index.php?fo=43534tgreger43&f=lalalalala.ext
to
wxw.website.x/dl/43534tgreger43/lalalalala.ext
Code:
url.rewrite-once = (
"^" + wpdir + "dl/(.+)/(.+)$" => wpdir + "/index.php?fo=$1&f=$2"
)
It works just fine, but it messes up the template because img links etc. are relative.
So what used to be:
wxw.website.x/images/logo.gif
in the old url, is now:
wxw.website.x/dl/43534tgreger43/images/logo.gif
Can anyone help me fix this?