PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Code:
http://www.example.com/fold/index.php?rid=1
http://www.example.com/fold/index.php?rid=2
But what I want is urls that look like:
Code:
http://www.example.com/fold/ss page
http://www.example.com/fold/tt page
RewriteBase /
RewriteEngine on
RewriteRule ^([0-9]+)/([a-zA-Z-]+)/([a-zA-Z-]+)/$ /fold/index.php?rid=$1 [L]
The href link will need the rid passed through, so the ([0-9]+) will be the rid. I have included this at the start of the folder structure, feel free to shift it around.
I'm not sure what OS yo'ure using, or if you're having trouble setting up the rewrite on the server, but this link truly saved me with that. I spent hours trying to get it to work--and this fixed it. Just throwing that out there, in case you're having that problem.