URL Masking - making filenames into folders?

56 views Asked by At

I'm not very technical with any code other than HTML so bear with me! This has me stumped so I'd really appreciate help with this.

I've got a simple site with file names like index.php, portfolio.php, portfolio-001.php, about.php etc. When people are browsing my site, they see:

  • "mysite.com/index.php"
  • "mysite.com/portfolio.php"
  • "mysite.com/portfolio-001.php"
  • "mysite.com/about.php"

in the browser's address bar.

My question is, how can I rewrite/mask the URL so that while they are visiting the pages, they will see:

  • "mysite.com/"
  • "mysite.com/portfolio/"
  • "mysite.com/portfolio/001"
  • "mysite.com/about/"

respectively?

Thanks, really appreciate the help!

Alex

0

There are 0 answers