Please help - Google Search shows my IP

Guard Dog

Guard Dog
Staff member
Joined
Dec 13, 2006
Messages
11,353
Reaction score
3,179

sasa

Affiliate Guard Dog Member
Joined
Feb 8, 2012
Messages
70
Reaction score
12
Hi,
Try to add next code to .htaccess :

RewriteEngine On
RewriteCond %{HTTP_HOST} ^50\.28\.79\.190$ [NC,OR]
RewriteCond %{HTTP_HOST} ^([a-z.]+)?slotsonfire\.com$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.slotsonfire.com/$1 [R=301,L]
 

Guard Dog

Guard Dog
Staff member
Joined
Dec 13, 2006
Messages
11,353
Reaction score
3,179
I did try that and it messed up the site :) I think because I am using CodeIgniter and I have several .htaccess files. The main site .htaccess has this:

RewriteEngine On
RewriteBase /

RewriteCond $1 !^(index\.php|images|css|js|centraladmin|testing|forums|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
 

sasa

Affiliate Guard Dog Member
Joined
Feb 8, 2012
Messages
70
Reaction score
12
Sorry,

mybe this is because of https in RewriteRule ^(.*)$ https://www.slotsonfire.com/$1 [R=301,L]

Anyway I suggest you to try with next:

Options +Indexes
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

RewriteCond $1 !^(index\.php|images|css|js|centraladmin|testing|f orums|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

If that then then I can only say sorry, again :)
 

Guard Dog

Guard Dog
Staff member
Joined
Dec 13, 2006
Messages
11,353
Reaction score
3,179
thank you, thank you, thank you!!!!!

That's why I love AGD (granted.. I'm biased) :)

I took out the https, replaced it with http and voila!

That should also rule out any canonical urls, correct? seems like it does.. when I type slotsonfire.com it turns it to www.slotsonfire.com. You are a genius! :)
 
Top