Forum Moderators: phranque

Message Too Old, No Replies

session id's in url - can mod_rewrite help

Need help with mod_rewrite

         

jmcmillan1873

11:58 am on Jan 28, 2004 (gmt 0)



Hello all,
I've recently got into mod_rewrite and it looks like it's really useful, tricky, but useful.

I have a problem on a site with users who's browsers don't allow cookies. The session id ends
up in the URL and that causes a 404 error to occur because apache appears to be looking for a file named after the session id.

One thing is that we don't use jsession in the session id. (Does this matter?)

What I really want to know is if there's a way
to strip the session id from the URL using mod_rewrite? Or do i have to tell my app server to be aware of the session ID in the url, but to ignore it?

Any help is appreciated.

P.S. I've found a solutions to a few problems I've had lingering for a while on here. Good site.

Regards - JM

jdMorgan

8:12 pm on Jan 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



JM,

Welcome to WebmasterWorld [webmasterworld.com]!

Yes, there is most probably an easy way to strip those session IDs out using mod_rewrite. Since you didn't post an example* of what the requested URL and server filepath look like, I'm afraid that's all I can offer.

Jim

* To comply with our Terms of service, please use "example.com" as the domain.