Jump to content


Photo

Looking for a Tutorial


  • Please log in to reply
3 replies to this topic

#1 MissLaguna

MissLaguna
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 16 April 2006 - 03:32 PM

I'm looking for a specific tutorial that will show me how to make the url look something like this: index.php?aboutus or something similar.

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 16 April 2006 - 04:05 PM

D0 you site use Apache server (80% chance you will)? If you do look into mod_rewrite. Note in order to use mod_rewrite your hosting accound must be able to use .htaccess files and has Mod Rewrite enabled.

#3 MissLaguna

MissLaguna
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 16 April 2006 - 05:16 PM

i wanted something where i could include header and footer files in the index file so i wouldn't have to include it in every other page. And in the index file it would have some type of string that will make the url index.php?aboutus instead of aboutus.php

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 16 April 2006 - 05:40 PM

If you want to refernce aboutus.php as index.php?aboutus then you will need to use mod_rewrite. PHP hasn't got the power to change how you refernce your files in the URL.

Have a look at [a href=\"http://www.workingwith.me.uk/articles/scripting/mod_rewrite\" target=\"_blank\"]this[/a] tutorial on mod_rewrite and what it can do.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users