Forum Moderators: phranque
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
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