Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

How to remove session ID appended URLs from the search engine index


23 replies to this topic

#21 ggrant3

  • Community Member
  • 276 posts
  • Real Name:Greg

Posted 15 November 2011, 15:05

View Posttoyicebear, on 17 August 2011, 03:20, said:

Just sign up at Google webmaster central and add in your site and then add osCid to the "ignore" list

Note: this will affect Google search listings only

Is there something (a setting, contribution, code change, etc...) that will remove the oscsid from the url's?

I have been looking for an answer to this and all I find is confusing post's back and forth about whether post "A" will work or whether "Post "B" is better or if Post "A" will get you banned from Google.

In admin I have admin>Configuration>Session setup so "Prevent Spider Sessions" and "Recreate Sessions" are set to true. But I still have the oscsid at the end of my urls.

*Edit*

I just looked at the url's that google has for my items (in my google merchant account) and they show the url fine (without the oscsid at the end of the url google has listed).

But when I browse my site I see the oscsid in my url's.

There is a way to get rid of the oscsid in the actual url's, right? I don't know if google is ignoring them or what, but my concern is that there still appear when browsing the site.

Edited by ggrant3, 15 November 2011, 15:17.


#22 Jack_mcs

  • Community Member
  • 24,442 posts
  • Real Name:Jack
  • Gender:Male

Posted 15 November 2011, 15:17

You just need to setup your configure file correctly: http://forums.oscommerce.com/index.php?showtopic=193738&hl=

#23 ggrant3

  • Community Member
  • 276 posts
  • Real Name:Greg

Posted 15 November 2011, 16:25

View PostJack_mcs, on 15 November 2011, 15:17, said:

You just need to setup your configure file correctly: http://forums.oscomm...topic=193738=

I was told this in another thread (I think by you) and I have gone through this thread (and just did it again), but I don't see where anything is set wrong

Is there a specific line/command I should be focusing on? I just get overwhemled looking at all the similar lines/commands and url info. Maybe I am continually missing something.

Edited by ggrant3, 15 November 2011, 16:27.


#24 matrix2223

  • Community Member
  • 859 posts
  • Real Name:Eric
  • Gender:Male
  • Location:MD USA

Posted 20 December 2011, 20:36

It depends on what you are trying to accomplish??

If you merely want to change the value of osCsid to something like sid or id then that is on line 133 of application_top.php
// set the session name and save path
  tep_session_name('osCsid');  <<<<---------This line here
  tep_session_save_path(SESSION_WRITE_DIRECTORY);
If you want to remove the sid all together use one of the seo url addons

I always recomend locking down a site so only I can view it, if I am unable to develop it locally. To do this use this bit in your .htaccess file where your catalogs index.php is located. (I also use this to add another layer of security to the admin folder.)
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Access Control"
AuthType Basic
order deny,allow
deny from all
# IP address of my 2nd home computer
allow from xxx.xxx.xxx.xxx
# IP addresses of my two work computers
allow from 00.000.000.000
Like I said at the beginning though, its all in what youre trying to accomplish.

Hope this helps some
Eric

Keep up on osCommerce changes and updates at Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.