3,624 reputation
11020
bio website
location London, United Kingdom
age
visits member for 3 years, 1 month
seen 19 hours ago

Sep
16
comment Long user agent field in HTTP header
Another possibility: such request was done programmatically (not a real browser but custom program, e.g. PHP/Python/Java script or whatever) where all request headers were built manually .. and some of them were built wrong (due to programmer error .. or buggy library that was used). In any case -- this should fall under "fake UA" case.
Sep
16
comment Long user agent field in HTTP header
Either a fake UA ... or your app somehow got it wrong -- it looks more like a cookie data...
Sep
12
comment 301 directory redirect exclude subdirectory
1) Have you restarted Apache after such changes? It is required to re-read httpd.conf file -- any changes there are not get picked up automatically (compared to .htaccess) 2) just FYI: this will redirect all in redirect folder except /redirect/example (I mean, /redirect.example/1.html will not be redirected) 3) Since you have access to httpd.conf, you can enable rewrite logging (on max level) and see why that particular request is failing
Sep
12
comment 301 directory redirect exclude subdirectory
I do not think you can do such exclusion with RedirectPermenent directive -- you need to use more powerful mod_rewrite where you can create much more powerful rules (compared to simple rules available for RedirectPermanent).
Sep
6
comment Should I log the price when an item is added to a cart?
Basket content (item id, title, quantity and price) should be stored in session (server side, of course). Session can be stored in file (traditional approach), RAM, DB or whatever. You can make session valid for 1 hour (or any other interval) since last basket activity and re-fetch current price if necessary. P.S. In my place we do honour price for 24 hours regardless of price changes (and if we are unable to supply that item at that price we simply communicate with customer explaining the reasons; making full refunds/charging extra if necessary -- we are fine with that as it's very rare).
Aug
24
comment What's wrong with this redirect rule set? (IIS7)
Your last rule .. it will create infinite redirect since you do not check if you are already on HTTPS or not (you always redirect to secure protocol, even if you are already there).
Dec
8
comment Creating a DNS Server
No need to cross post on multiple sites at the same time: serverfault.com/questions/456315/creating-a-dns-server
Nov
16
comment How do I install PHP 5.4.8 on a Win XP workstation?
I do not think that bunch of a simple links can be treated as a good answer. I suggest putting answer yourself -- you can tell what link was good for you and describe some hints/experience in general -- this will be much better answer in such situation.
Nov
16
comment How do I install PHP 5.4.8 on a Win XP workstation?
P.S. Sorry, it was 5.3.x on Windows XP when I did it (installed from zip though) not 5.4.x.
Nov
16
comment How do I install PHP 5.4.8 on a Win XP workstation?
Try these: 1) youtube.com/watch?v=SBo7-Wy0bdM 2) youtube.com/watch?v=f2lczTgePeA 3) forums.iis.net/t/1047300.aspx 4) php.net/manual/en/install.windows.iis6.php . If still having issues: google.co.uk/search?q=install+php+5.4+windows+xp+iis . I did one of those few months back for a friend and it worked (personally I'm using IIS 7 on Windows 7, so installation is "a bit" different, as IIS 7 differs from IIS 6 and earlier).
Oct
30
comment Links in my site have been hacked
Try checking your site from another computer or (at very least) another browser -- maybe your computer just got some nasty software installed that does this. If that is not the case -- then worth checking IIS configuration (and web.config files in particular) -- maybe links got overwritten using URL Rewrite Module (it can rewrite incoming and outgoing links).
Sep
30
comment Do Parallels Plesk Panel 11 have free inbuilt firewall?
For Windows it is there: Power User Mode demo -> Server tab -> Tools & Settings -> Tools & Resources -> IP Addresses -> Firewall (button). But it does not work on demo site (for obvious reasons). It uses Windows own firewall, no idea what it will use on Linux hosts.
Sep
17
comment How to re-direct Wordpress posts with 301
Possibly the easiest solution here would be to use rel="canonical": support.google.com/webmasters/bin/… ; googlewebmastercentral.blogspot.co.uk/2009/02/… ; Redirect solution may also work (just generic regex), but since it will be generic regex, it may have false positives. The best solution therefore would be to redirect not at .htaccess level, but rather in actual PHP code, when proper URL is known for sure (compare actual URL to the expected one and if they differ redirect -- exactly the same approach used on this site).
Aug
25
comment how long after a 301 redirect can i cancel my old site
Better keep it. Some people will still be searching for you (in case they are typing URL directly) using old address .. or using OLD bookmark. What if somebody else will buy that .com domain and use it to create competitive site (such probability depends on what kind of site you have here)? So in general -- better keep them both.
Jul
16
comment displaying a list of files
PHP Manual says: opendir() uk.php.net/manual/en/function.opendir.php; scandir() uk.php.net/manual/en/function.scandir.php; glob() uk.php.net/manual/en/function.glob.php
Jul
13
comment htaccess Rewrite Syntax?
You question is way to broad -- you need to be more specific, e.g. from URL => to URL; what rules have you tried; what is working and what is not etc.
Jul
6
comment Link to pages on site without .html extension appearing in browser?
@Anime163 Definitely No. Browser analyse server response headers (Content-Type in particular) as well as actual file content to identify correct format (display/processing method). It is not a surprise to see on the web file with .jpg extension that in fact is .png file (or other way around). If on my site all pages have .do extension -- how browser should treat them (accordingly to your logic)?
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
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/… ?