943,682 Members | Top Members by Rank

Oct 19th, 2008
0

Mod rewrite dynamic PHP URLs

Expand Post »
I have an image gallery that generates album and image URLs each time an album and/or image is added. The generated album URLs are like this:
index.php?page=list-image&album=1
index.php?page=list-image&album=40

In one of my SQL tables I have an Album Name row as `al_name`

I want URLs like index.php?page=list-image&album=1 to be rewritten by printing out /$row['al_name']
So, the rewritten URL will look similar to /Best_Wedding_Photos/ if the Album Name is: Best Wedding Photos

Likewise, I need your help to rewrite the likes of the URLs below:
index.php?page=image-detail&album=1&image=1
index.php?page=image-detail&album=1&image=2

I would like the likes of the these image URLs to be rewritten as:
/Best_Wedding_Photos/image-1.html if the Album Name is: Best Wedding Photos and image=1

Your help is much appreciated in advance.
Similar Threads
Reputation Points: 16
Solved Threads: 9
Junior Poster
mexabet is offline Offline
148 posts
since Mar 2008
Feb 23rd, 2009
0

Re: Mod rewrite dynamic PHP URLs

Hi everyone, this issue still persists and I would be glad if someone can kindly come along to look into it and probably bring a solution. I'm literally stuck with this for a long time now. Thanks in advance.
Reputation Points: 16
Solved Threads: 9
Junior Poster
mexabet is offline Offline
148 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: Free at Last, Free at Last, XenServer is Free at Last.
Next Thread in Linux Servers and Apache Forum Timeline: Allow write access to the web interface user web scripts





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC