What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » ?id=home (replacement)

?id=home (replacement)
Author: Message:
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
O.P. ?id=home (replacement)
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 :)
01-22-2006 06:40 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: ?id=home (replacement)
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
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
01-22-2006 06:54 PM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
O.P. RE: ?id=home (replacement)
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 :)
01-22-2006 06:58 PM
Profile PM Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: ?id=home (replacement)
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).

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

01-22-2006 07:17 PM
Profile PM Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: ?id=home (replacement)
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]

This post was edited on 01-22-2006 at 08:11 PM by hmaster.
[Image: sig.png]
01-22-2006 08:10 PM
Profile PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
O.P. RE: ?id=home (replacement)
bump ... I kind of want my current id=rss etc to go /rss, so it seems in a different directory. Thanks :)
01-30-2006 07:15 PM
Profile PM Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
35 / Male / Flag
Joined: Aug 2003
RE: RE: ?id=home (replacement)
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.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
01-31-2006 07:27 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On