| | |
Mod rewrite dynamic PHP URLs
![]() |
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.
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.
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.
![]() |
Similar Threads
- I want google to index forum threads (Search Engine Optimization)
- Googles php and MySQL preferences (Search Engine Optimization)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Free at Last, Free at Last, XenServer is Free at Last.
- Next Thread: Government Saves Billions Using Open Source Software. Really?
| Thread Tools | Search this Thread |
.net apache apple asus bbc bluegene centos cisco citrix cloud cloudcomputing datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





