PDA

View Full Version : search engine friendly - where is the session= coming from?


boatdesign
05-05-2003, 11:25 PM
Following the search engine friendly hack to allow search engines to better index my site, I've used teh following mod_rewrite rules:


RewriteRule ^forum([0-9]+)\.html$ /forumdisplay.php?forumid=$1 [L]
RewriteRule ^thread_([0-9]+)\.html$ /showthread.php?threadid=$1 [L]
RewriteRule ^thread_([0-9]+)-([0-9]+)\.html$ /showthread.php?threadid=$1&perpage=15&pagenumber=$2 [L]
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?forumid=$1&daysprune=1000&sortorder=&sortfield=lastpost&perpage$

However, now when I click on a link as follows:
http://forums.mydomain.net/forum3.html

And view my who's online as Admin, I see the following:
Unknown Location: /forum3.html?s = f21bf88f779771545c41a230887259c3

Where is the s = f21bf88f779771545c41a230887259c3coming from in the rewrite rules???

Note: I had to put spaces around the = sign in the session tag above or the forum here erases the s = portion, even when it's placed inside code tags

Thanks in advance for any help and advice.

boatdesign
06-07-2003, 02:47 AM
Anyone have any ideas on how to improve this and eliminate the session hash which I believe keeps many of my threads from being well indexed by search engines?

Erwin
06-07-2003, 03:06 AM
You need to edit online.php to make it work with your search engine friendly hack. Fastforward's thread has some instructions in it to do that.

boatdesign
06-07-2003, 03:14 AM
Thanks Erwin,

But it's not how the display in online.php looks to visitors I'm worried about - my concern is that if online.php is showing the session hash for the robot visitors, the robots must be getting the session hash somehow and thus they will not index my forums well.

I thought the whole point of the rewrite rules was to get rid of the session hash because some search engines refuse to list pages with a session hash, but it looks like despite following the rewrite rule URL's, a unique session hash is still being somehow served to the robots? (and to me as a "test robot" by simply opening a different browser as an un-logged-in visitor visiting one of the mod-rewrite URL's in the first post which isn't supposed to generate a session hash I thought... but a session hash still shows up in online.php for the guest visit I just created)