| bio | website | |
|---|---|---|
| location | London, United Kingdom | |
| age | ||
| visits | member for | 2 years |
| seen | 3 hours ago | |
| stats | profile views | 96 |
|
Jun 26 |
comment |
prevent IIS from executing scripts in a specific directory @cdonner If you have access to the server's file system directly (or can execute commands that will affect file system), then just use appropriate security permissions on such web.config to prevent any access over FTP (or whatever is required). |
|
Jun 26 |
comment |
prevent IIS from executing scripts in a specific directory @cdonner So .. what is the problem? Wrap your config into location element and then such web.config it can be placed in different location (e.g. root folder): <location path="subfolder/protect"><system.webServer>....</system.webServer></location>. If you cannot use web.config at all -- you will have to place such code (using full path to that folder though) in server wide config file. |
|
Jun 16 |
awarded | Yearling |
|
Jun 15 |
answered | How can set a local host ip address to forward to local host virtual host domain name |
|
Jun 14 |
comment |
Complex Disallow pattern in robots.txt Why don't you just use either 1) 301 redirect to a correct page (using mod_rewrite and .htaccess or in your php code) or 2) add canonical URL entry in <head> section of your HTML -- googlewebmastercentral.blogspot.co.uk/2009/02/… ? |
|
Jun 14 |
revised |
Complex Disallow pattern in robots.txt improved formatting |
|
Jun 12 |
comment |
What response headers encourage 304-Not Modified upon reloads? Well .. general practice is to remove ETag to save a bit on bandwidth if other possible "If-*" header is present (which is the case in your example). 1) en.wikipedia.org/wiki/HTTP_ETag 2) webmasters.stackexchange.com/search?q=etag |
|
Jun 12 |
comment |
Spam bot constantly hitting our site 800-1,000 times a day. Causing loss in sales Side note: Instead of banning IPs (which does not really makes impact since they use new one every time) better ban on more stable factor (based on your description). In your case -- referral. You can create simple rule using mod_rewrite to abort all requests that have those domain names in referrer request header. |
|
Jun 12 |
answered | What response headers encourage 304-Not Modified upon reloads? |
|
Jun 11 |
comment |
HTTPS To http redirect issue. How to overcome? Except disabling SSL (removing such binding) in Plesk -- nope, sorry. Maybe somebody else has better ideas -- I have never met such issue myself and don't really know where to start (except all what I have said already). |
|
Jun 11 |
comment |
HTTPS To http redirect issue. How to overcome? You will see such warning in browser when domain name in SSL certificate does not match requested domain name. Because SSL ( S part of HTTPS) executes before http connection is made (before mod_rewrite has a change to kick in), you will see it (warning) unless you install correct certificate. You better find out why you are indexed via HTTPS (cannot help here, unfortunately) |
|
Jun 11 |
revised |
HTTPS To http redirect issue. How to overcome? improved formatting, spelling |
|
May 30 |
comment |
Different behaviour with windows authentication on IIS7 websites To start I suggest checking access right on c:\inetpub\wwwroot folder and compare to the root folder for web2.local (even despite the fact that actual app is located in different folder). |
|
May 3 |
comment |
Link Domains/Subdomains to folders in a PC Server? The answer in the link provided by @paulmorriss will give enough info |
|
May 3 |
comment |
Link Domains/Subdomains to folders in a PC Server? That's regarding Apache. But you still will need to configure DNS so those domain names point to your server (unless all requests are done locally -- then you can use hosts file for that). |
|
May 3 |
comment |
Link Domains/Subdomains to folders in a PC Server? You will have to edit your Apache config files -- you will need to use virtual hosts approach (which is not used by WAMP or alike by default). More details: httpd.apache.org/docs/current/vhosts ; httpd.apache.org/docs/current/mod/core.html#virtualhost |
|
May 2 |
answered | Replace 404 with 301 to other subdomain |
|
May 2 |
comment |
Replace 404 with 301 to other subdomain What do you mean by "false positives" .. and what web server (I assume it's Apache) says about 500 errors (check Apache's error log for EXACT error message). |
|
Apr 26 |
comment |
zlib compression issues The ob_gzhandler approach requires you to buffer whole output, so that modified headers (that produced by that handler) will still be able to be sent (plus, the actual compressed content). Using webserver-level compression (see @msanford answer) is much better in this case as it happens after page was finished processing by php completely. |
|
Apr 26 |
comment |
Redirect HTTPS request to HTTP in Apache It may be better to rely on %{HTTPS} variable instead of specific port number .. as you can put HTTPS service on ANY port (depends on actual server condition/configuration/your requirements) -- 443 is just a default port, so you will have to edit this rule to make it work again if it is run on such non-standard port. Such alternate condition will be RewriteCond %{HTTPS} =on [NC] |