Posted on February 12th, 2008
13080 views
On your index.php where the content is meant to go put this:
<?php now that we have that done we create a folder called: Modules In this folder we create folders. So say we created a folder name "News" the $_GET['id'] would be news and inside that folder we create a page called for instance news.php then the $_GET['page'] would be news. Now to get to that page we would go to: www.mydomain.com/index.php?id=news&page=news Now to shorten this and make it search engine friendly we are going to create a .htaccess file and use mod rewrite. So create a file named: .htaccess RewriteEngine on That simply tells the server to show on the page id=news&page=news it can be accessed via (/news). Yes i know its kind of confusing and i will get more into .htaccess on my .htaccess tutorial i hope to make soon. Anyway now we have turned this: www.mydomain.com/index.php?id=news&page=news into: www.mydomain.com/news And thats it. I hope you understand me. Please PM me or E-Mail me ([email protected]) with any problems. |