Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Host messed up my htaccess file & robots.txt now redirect issues in webmaster tools

Featured Replies

Right, where do I begin. Free Virtual Servers' server updates kept changing my htaccess file making the code that parses the site as php to redirect to my mobile version broken, so the code displays at the top of the page - they managed to do this twice in a week.

 

I was given the solution to make htaccess immutable, so it couldn't be changed - fine I thought...

 

Then less than 24 hours they made more server changes, and because my htaccess file was now immutable didn't change it, the result being that as it was such a big change, my site went down!

 

The site itself exists and is fine - but the blog post links were all 404'ing - I naturally blamed FVS, who were vague about any potential cause - I recreated the blog's htaccess file after deleting the one already there and this solved it.

 

To add insult to this, Google tried to crawl the site while it was down and I dropped off page one as a result. The message being that google couldn't find my robots.txt file - well I didn't have one!

 

So I tried to "fetch as google" and index my site again but the robots error is still showing - so I created a damn robots file as FVS were too vague in their response again.

 

I now find that I can't submit all linked urls as this box in webmaster tools is now greyed out - and to top it all, I'm told when it tries to fetch and index my blog (inserted inside my site) that it's 301 redirected to the same url it is already on!

 

Here's the google message:

 

HTTP/1.1 301 Moved Permanently
Date: Sat, 31 May 2014 21:17:39 GMT
Server: Apache
Location: http://www.fizzwebdesign.co.uk/blog/
Content-Length: 244
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.fizzwebdesign.co.uk/blog/">here</a>.</p>
</body></html>

I haven't set up a 301 for the blog - it's in the same place it always has been.

 

I feel like I'm being sabotaged, any help as to what's going on? Is it all FVS' fault?

  • Author

Sure - this is for the site as a whole, not the blog part.

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{http_host} ^mysite.co.uk [nc]
RewriteRule ^(.*)$ http://www.mysite.co.uk/$1 [r=301,nc]
RewriteRule ^index\.html$ / [R=301,L]
RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L]

AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml .htm .html

#AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml .html .htm
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .htm
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html

But it also turns out that I've been hacked with a conditional redirect to adult sites, so it doesn't happen every time you try to replicate it.

 

This is what aw-snap.info is finding - but I can't find it on my site anywhere, last night I reloaded WordPress, but no joy..

 

Content that was returned by your request for the URL: http://www.mysite.co.uk 
Note: Content displayed is from the redirect location, the URL http://xe67sxcdb1v1n3s5muwre7p.sanalmatik.net/index.php?g=aW1wc3Z6PWJ4bmsmdGltZT0xNDA2MDExNjUwMjkxNzkxMzQxOSZzcmM9MTA5JnN1cmw9d3d3LmZpenp3ZWJkZXNpZ24uY28udWsmc3BvcnQ9ODAma2V5PUExREFFRDE3JnN1cmk9Lw==

1:< html> < head> < title> index< /title> < /head> < body> 
< sc​ript > if (typeof(location.re​place)!='undefined') { top.location.re​place( "hxxp://95wbe830tumxyapvz​tcz6ix.adultvideoz.net/adsort.php?xx=1&aid=2&atr=dirs&src=109" ); } else { top.location.href = "hxxp​://95wbe830tumxyapvztcz6ix.adultvideoz.net/adsort.php?xx=1&aid=2&atr=dirs&src=109" ; }; < / sc​ript > 


Note: The sc​ript call above looks suspicious! Check to make sure it is legit. 

< /body> < /html> 

Edited by beelzebomb

  • Author

Thanks I have already done exactly that and found nothing - I've now taken down my blog (deleted off server) and put up a maintenance page. But Google still can't find my robots file so won't crawli my site - same message each time I 'fetch' - I've now slipped off page one so this is getting desperate for my income.

  • Author

Yes it is the same path, I've now reloaded my entire site and all javascript files etc - also contacted host who have restarted (?) the firewall as google suggests one reason might be that host is blocking googlebot (though surely that's insane!) or their firewall is blocking it.

 

The redirect seems to be conditional, so doesn't show up each time I check, so not sure if it's gone or not.

 

FVS aren't providing free hosting - it's a paid package, bit of a rubbish name though they do provide some limited free hosting packages as well. Came highly recommended by fellow web designers and hosters a few years back but service really seems to be on a downward spiral & I know some of those have now left them.

  • Author

Thanks Weedy101, I'm going to completely fresh install my WP blog and re-upload all the posts to be safe. Quite a few people recommend Sucuri and I guess at 50 odd quid a year it's good value - I've had 2 hacks in the past 2 years and it stuffs up your google listing, SEO and takes a huge amount of time to sort out - well worth it.

 

I am considering completely deleting the database and creating a new one, or is this overkill?

 

Guess the downside is that I will lose all the comments? I can't think of a way round this really.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.