Jump to content


This topic is now archived and is closed to further replies.


URL Rewrite and Passing Variables

Recommended Posts


Not sure if this is the correct forum but you guys have not steered me wrong in the past.

On my site I just started using URL rewrites to clean up my urls.  So for example a page that is normally:


Will output as:


Now my problem is that I am also needing to pass session ID to the next page because I am using a login system borrowed from the forum software I use.  The forum software appends the ID using a function called append_sid() and appends the SID only if it is needed.  If I apply this function to my rewritten URL I get something like http://www.mysitename/post/5/&id=asdfdsf32rasdfadf.  This obviously won't do the trick.

I am looking for a way that I can still use URL rewrites and pass along the session ID.


As I was editing this I decided to try to change my Rewrite Rule.  Now my posts output as:


Now I can append the SID to it and it appears to work fine.  I'm mainly doing this because my old site wasn't getting indexed will due to the sloppy URLs.  Do you think this should solve my problem?

Thanks in advance,

Share this post

Link to post
Share on other sites

My idea has failed.  The SID shows up in the URL but is not actually passed.  I'm starting to think I may have to live with my sloppy URLs.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.