Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

No Site Information in Search Engine Listings


Go to End


1476 Views

Avatar
artman

Community Member, 5 Posts

25 August 2008 at 3:35am

After switching our site to Silverstripe, public search engines like Google and Yahoo no longer show the site Title and Body tag information. Those two just show the page address in the spot of the title.

When I browse to the site and do a View > Page Source I see the Title, Meta, and Body tags just fine. I'm thinking this might be something to do with the .htaccess rewrites but am not sure. Any thoughts?

Here's my .htaccess:

### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###