New to PhP, looking for some direction something

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!

Moderator: General Moderators

Post Reply
max12
Forum Newbie
Posts: 1
Joined: Tue Jun 15, 2010 5:19 pm

New to PhP, looking for some direction something

Post by max12 »

Hello,
I've got a pretty limited background in programming (Java and html) and I'm helping someone with their site. It's pretty small, a PHP index page that loads several html templates to a frame. It was written by a professional designer, the code is straight forward and efficient and gets the job done but we're looking to spruce it up a bit.

We've got the .com domain setup but when you navigate the site it gives a generic code bit on the URL ".com/page.php?id=3" and we'd like to have it display something a little more human and friendly so people can type it in
(eg. .com/associates)

The hosting site provides pre-coded 301 redirects so we should do that without too much trouble but if anyone has any idea where to even start with this project help would be much appreciated! I've been told this is doable within the php structure so hopefully we wont have to start anything from scratch. Thank you for reading this!
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: New to PhP, looking for some direction something

Post by aravona »

You should be able use a htaccess mod re-write to change your links from ugly standard links to pretty permalinks :)

A google of 'htaccess permalinks' brings up a lot of stuff, mostly to do with wordpress. http://www.blog.highub.com/apache/http- ... d_rewrite/ Thats the first site with anything non WP related so can give that a go :)
Post Reply