> No the thing works one way- even with proxies! It cannot process the returned HTML.
So there's no apache hook or phase which is adding "http://www.mydomain.com/a
Main Topics
Browse All TopicsI'm using mod_rewrite to rewrite URL like this:
http://www.mydomain.com/se
to URL like this:
index.php?sid=session_id&r
My question is: Is it possible to tell mod_rewrite how to rewrite relative links in resulted HTML? I want to use this feature to propagate session id. When I use relative link now, result is quite confusing because of not only session_id is added at the beginig of URL but whole RewriteRule match. Can this be solved using mod_perl or mod_python?
I'm using Apache 1.3.27.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
> No the thing works one way- even with proxies! It cannot process the returned HTML.
So there's no apache hook or phase which is adding "http://www.mydomain.com/a
Business Accounts
Answer for Membership
by: BigRatPosted on 2003-06-24 at 04:35:16ID: 8788614
No the thing works one way- even with proxies! It cannot process the returned HTML.
.script"> >This is a link</RAT:A>
"Can this be solved using mod_perl or mod_python?"
Sort of. I use an application server like TomCat which supports SmartTags. So I have defined tags which I use in my HTML pages and in my script output :-
<RAT:FORM method=post action="/path/to/processor
and
<RAT:A HREF="/path/for/link.html"
and the smart tag processor adds session id into the URLs. (Not every URL since I don't want to rewrite the .gifs!)
So a mod_perl solution would imply writing a processor and editing your HTML and scripts.
HTH