What I want to do is be lazy and do the index.php?page=blah so I only have to make a blah.inc.php to include. But, I heard search engines do not index pages like this...I did a quick look through google, and saw a few "questionable pages" (urls with a ? in them). But, does anyone know anything on the matter? Do you not get as good a ranking?
Or would it be preferrable to use "http://domain.tld/index.php/blah" I think that looks nicer, but does anyone know if that will cause problems with browsers and whatnot, because it is a bit of a funny url...
Does anyone know? And don't you think "index.php/blah" looks much nicer than "index.php?page=blah"?
My code I will use...:
NEVERMIND, I found a useful site: http://www.websitepublisher.net/article/search_engine_friendly_urls/
Anyone with dynamic sites should read this!
Or would it be preferrable to use "http://domain.tld/index.php/blah" I think that looks nicer, but does anyone know if that will cause problems with browsers and whatnot, because it is a bit of a funny url...
Does anyone know? And don't you think "index.php/blah" looks much nicer than "index.php?page=blah"?
My code I will use...:
PHP:
$script = $_SERVER["PHP_SELF"];
$script = str_replace("/index.php/","","$script");
if(file_exists("$script.inc.php")){
include("$script.inc.php");
}
else{
include("index.inc.php");
}
NEVERMIND, I found a useful site: http://www.websitepublisher.net/article/search_engine_friendly_urls/
Anyone with dynamic sites should read this!
Last edited: