justinchrono Posted March 16, 2010 Share Posted March 16, 2010 Hello. My companies website is set up through html and php. I was wondering how I could change the menu links, instead of going to an artist's id number, to just go to a simple link. www.panopt.com/artists/ms.php an example page I couldn't find in my code where the links are. Thanks. Quote Link to comment Share on other sites More sharing options...
XeNoMoRpH1030 Posted March 16, 2010 Share Posted March 16, 2010 Sounds like a job for Apache's Rewrite module. Quote Link to comment Share on other sites More sharing options...
justinchrono Posted March 16, 2010 Author Share Posted March 16, 2010 ya? is that wat u suggest? how does that work? Quote Link to comment Share on other sites More sharing options...
XeNoMoRpH1030 Posted March 16, 2010 Share Posted March 16, 2010 Well, it's either that or you manually create a page for every person. What the rewrite does is, well, rewrite the URL. It makes it so if you went to /artist/31-Your-Name/ or something similar to that, that it would go to artist.php?id=31. Of course, there are lots of ways you can go about it, like if you could search by name (not sure how your DB stuff is setup) then you could ditch the id in the front and go that route. You can search for it on Google. One of the first tutorials is this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.