Jump to content

URL Rewrite and Passing Variables


madk

Recommended Posts

Hello,

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:

http://www.mysitename.com/view-post.php?id=5

Will output as:

http://www.mysitename.com/post/5/

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.

UPDATE

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

http://www.mysitename.com/post/14/post.php

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,
Matt
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.