htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Send BOTS a 503 but send humans to a helpful error page
PostPosted: 21 Jul 2007 23:48 
Offline

Joined: 21 Jul 2007 23:30
Posts: 3
Hi,

First of all Hello! to everyone here, I've just joined. Offlate, I've been facing problem with my WordPress blog (which is hosted on DreamHost).

Problems on my Blog:

1. The blog is one way or the other remain down most of the time, when I ask DH support, they pet reply "Server over load".

I've done everything on my site to reduce server load, and that was confirmed by the support personal that my site is now under normal load.

2. Even though, I keep getting all possible HTTP errors, e.g. 400, 401, 404, 500, 503, HTTP/1.1 etc. I've writen many times, but to no avail.

Since, these ongoing error are causing a lot of adverse effect on my blog(which is quite new), I,m looking for some solutions to speed up my blog further.


Querys:
1. Can anyone here guide me tips on "how to speed up my blog in terms of JS, CSS, PHP etc.?"

2. Recently, I've tried to implement the under quoted code in my root .htaccess, but it gives me following error:

Error: The request will never end.

Quote:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^.*(Googlebot|Googlebot|Mediapartners|Adsbot|Feedfetcher)-?(Google|Image)? [NC]
RewriteCond %{REQUEST_URI} !^/error/503.php [NC]
RewriteRule .* /error/503.php

RewriteCond %{REMOTE_HOST} !^1\.1\.1\.1
RewriteCond %{REQUEST_URI} !^/error/404.php [NC]
RewriteRule .* /under-development-explain.html [R=302,L]



I'm desperately looking for some expert advice, I hope to get the anser here on the forum.



Rok...
http://www.ditii.com


Top
 Profile  
 
 Post subject: Re: Send BOTS a 503 but send humans to a helpful error page
PostPosted: 20 Aug 2007 15:07 
Offline

Joined: 28 Feb 2007 17:16
Posts: 40
Rok wrote:
Hi,

I'm desperately looking for some expert advice, I hope to get the anser here on the forum.


Could you re-paste your .htaccess file? The code you posted already doesn't really make any sense..

For speed tips: Top 15 Speed Tips


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB