Shoutbox

?id=home (replacement) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: ?id=home (replacement) (/showthread.php?tid=55151)

?id=home (replacement) by absorbation on 01-22-2006 at 06:40 PM

I use php do generate a lot of includes to happen in one file (index.php) and when and ?id=home or something is added on it add an certain include. This technique may save time updating each page and looks good, but bots do not pick up on it and thus not all my pages are listed in search engines.

I need a way to make sure search engines pick up on this.

So I asked dt, who tryed to mess with .htaccess but failed (was 4am at the time) then I asked the newb (segosa) and he said his busy (lasy) and said post a thread in tech talk about using  mod_rewrite.

So here, I am doing just that. My current script is:

code:
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$id){ $id = $_GET['id']; }

if($id=="" or $id=="home"){
    include("home.php");
}elseif($id=="asmiles"){
    include("animatedsmiles/index.php");
}elseif($id=="articles")

?>

That is just part of it there is over a hundred in total. So I basiclly need a way to do ?id=boobs etc in a way bots pick them up better. Thanks :)
RE: ?id=home (replacement) by Dempsey on 01-22-2006 at 06:54 PM

as long as you link to the pages, AFAIK there's no reason why bots won't pick up the pages.

But you can try and help google spider all your pages using Sitemaps


RE: ?id=home (replacement) by absorbation on 01-22-2006 at 06:58 PM

quote:
Originally posted by Dempsey
as long as you link to the pages, AFAIK there's no reason why bots won't pick up the pages.

But you can try and help google spider all your pages using Sitemaps

Well they do pick them up they are just listed very far back, all engines do this except for MSN Search. But i will try this, thanks :)
RE: ?id=home (replacement) by L. Coyote on 01-22-2006 at 07:17 PM

quote:
Originally posted by Absorbation
about using  mod_rewrite

In a .htaccess file, in the www/public_html root, put:
code:
RewriteEngine on
RewriteRule ^([a-zA-Z0-9]+)\.php$ /index.php?id=$1 [L]

This will grab anything like /La1a.php and actually run /index.php?id=La1a (but people won't see the index.php part).

Take note that if you don't have mod_rewrite, it won't work (you'll get error 500).
RE: ?id=home (replacement) by hmaster on 01-22-2006 at 08:10 PM

Yeh i have a .htaccess to rewrite my pages

code:
RewriteEngine On
RewriteRule   ^([A-Za-z0-9-]+)/?$  index.php?page=$1 [L]

RewriteRule   ^([A-Za-z0-9-]+)/ver/([A-Za-z0-9-]+)/?$ index.php?page=$1&ver=$2 [L]

RewriteRule   ^([A-Za-z0-9-]+)/sec/([A-Za-z0-9-]+)/?$ index.php?page=$1&sec=$2 [L]

RE: ?id=home (replacement) by absorbation on 01-30-2006 at 07:15 PM

bump ... I kind of want my current id=rss etc to go /rss, so it seems in a different directory. Thanks :)


RE: RE: ?id=home (replacement) by rav0 on 01-31-2006 at 07:27 AM

quote:
Originally posted by Dempsey
as long as you link to the pages, AFAIK there's no reason why bots won't pick up the pages.
Google refuses pages with ?id=.

Many bots, including Google's, won't spider a lot of or even any pages with get variables to avoid getting stuck respidering heaps of pages.

Both of these URIs;
code:
http://shoutbox.menthix.net/showthread.php?tid=55151
http://shoutbox.menthix.net/showthread.php?tid=55151&pid=593434
go to the same page, but there are different get variables, and search engines cant always tell that they are the same, or sometimes think of two things as being the same when they are diferent.