www.webdeveloper.com
Results 1 to 7 of 7

Thread: Help a new guy out.

Threaded View

  1. #1
    Join Date
    Jun 2012
    Posts
    6

    Help a new guy out.

    Hey,

    I'm kinda new at programming, but over the past few months have managed to understand CSS,HTML fairly well and now I'm getting into PHP. I've found I learn a lot more by creating rather than studying.

    A project I want to attempt this weekend is to make a multi-page small business website using only CSS, HTML, and PHP. I'm going to post any questions as I go onto this thread.

    My first question:

    I know I'll have different files like index.php for home and single.php for interior pages. How do I designate the URL location for these interior pages? In other words, how do I make single.php go to domain.com/about-us. Is there some kind of tag I need to designate to make each page located at a particular URL? What if I wanted to make another single.php template go to domain.com/contact. Could someone help me out here or point me towards a good tutorial?

    For example, I know that I could make an about page <a href="about.php">About Us</a> and link to it that way, but would rather create the more common and seo friendly URLs like <a href="/about-us">About Us</a>. How do I get rid of this "page/file name" attribute and migrate to URLs site-wide?

    Thanks,

    Zach
    Last edited by zsemago; 02-26-2013 at 09:49 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles