Jump to content

Questions about page naming


9999

Recommended Posts

just make the index.php get the $_GET variables

example:

 

index.php

<?php

echo $_GET['page'];

?>

 

then go to http://www.yourwebsite.com/?page=home

 

 

 

i dont know how it affects the search engines,

but i've heard that some search engines do not

index pages with variables in the URL.

its up to you.

 

you can do something like this:

 

<?php

switch($_GET['page']){
	case 1: // If index.php?page=1
		include('page01.php'); // you can change the value to the name of the page
	break;
	case 2: // If index.php?page=2
		include('page02.php'); // you can change the value to the name of the page
	break;
	// etc.....
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.