Mod rewrite dynamic PHP URLs

Reply

Join Date: Mar 2008
Posts: 142
Reputation: mexabet is an unknown quantity at this point 
Solved Threads: 9
mexabet's Avatar
mexabet mexabet is offline Offline
Junior Poster

Mod rewrite dynamic PHP URLs

 
0
  #1
Oct 19th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 142
Reputation: mexabet is an unknown quantity at this point 
Solved Threads: 9
mexabet's Avatar
mexabet mexabet is offline Offline
Junior Poster

Re: Mod rewrite dynamic PHP URLs

 
0
  #2
Feb 23rd, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC