Forum Moderators: phranque

Message Too Old, No Replies

301 and session removal conflict

Suggestions for fix

         

Wampydude

7:29 pm on Feb 12, 2006 (gmt 0)



New to the forums, hope someone here can help out. I have set up a basic 301 so that visitors and spiders go to a "www" address, as shown...

RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule (.*) [mysite.com...] [R=301,L]

Now I need to add code so that search engines aren't getting a php session when they crawl the site, similair to...

<IfModule mod_rewrite.c>
php_value url_rewriter.tags "a=href,area=href,frame=src,input=src"
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
</IfModule>

The problem is that I get 500 error pages when I try to use them together. Any suggestions what needs changed?
Thanks

Little_G

4:00 pm on Feb 13, 2006 (gmt 0)

10+ Year Member



Hi,

You may have more luck with BrowserMatch
http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html#browsermatch [httpd.apache.org]
eg. BrowserMatch "Googlebot" php_value session.use_only_cookies 1

Andrew