News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Indexing Problem

Started by The Hero, June 14, 2012, 04:35:10 PM

Previous topic - Next topic

The Hero

So, I've installed the Pretty Urls mod, and it seems that since then, my website will show up on google as my host ip rather than domain name. I'm sure this has something to do with the way it re writes the htaccess, but does anyone know a solution to this?

Colin

Not too sure, but you could use this to add a 301 back

  RewriteCond %{HTTP_HOST} ^[IP HERE]$
  RewriteRule ^(.*)$ http://www.[domainhere]/$1 [R=301,L]
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

The Hero

Yeah, I did that already. But I hate that my website is showing up on google like that. After setting the redirect, when google re-crawls my site, will it still show with the ip on a search?

Colin

No, it may take a bit to re-crawl your site, but it should change.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Arantor

Link to the site? (non IP address)

Advertisement: