Tag Info

New answers tagged

0

You're doing things exactly correct. Use 301 and there will be no problems. This is NOT a situation to be using rel=canonical. Canonical linking is for multiple URLs with the same content. This isn't what you have, instead you're trying to move users in the proper direction. The best case scenario is to just not show the links to the 200 and 500 pages on ...


2

It turns out this was indeed a bug in their system where the introduction of .uk domains a year ago as a country-code top level domain (ccTLD) and not just as a second-level domain (e.g. .co.uk, .org.uk, .ac.uk etc.), had not yet been catered for in their system.


0

I see strange regex out there that appear to be more complex than necessary... for example, why use (.*) instead of just a *??? Because in regular expressions (as opposed to globbing patterns / standard wildcards) the * (asterisk) by itself does not mean anything. The * repeats the previous element 0 or more times. For example, the regex A* will match ...


0

Try something like this: <VirtualHost *:80> ServerName example.com ServerAlias www.example.com DocumentRoot "/path/to/port/80/site" </VirtualHost> <VirtualHost *:443> ServerName example.com ServerAlias www.example.com DocumentRoot "/path/to/port/443/site" </VirtualHost> Create an .htaccess file in ...


1

You are half way there. I would suggest that any page that does not exist should error out. I have a "removed" page that issues a 404 and any page that is deleted would 301 redirect any deleted page to the "removed" page. But in the end, I found that it was far better if the page I deleted would 404 without the 301. I changed this a bit, and please know ...


0

Use a server-side scripting language. Create this PHP script: <?php $handle=fopen("301tracking.log","a+"); fwrite($handle,"1 guest from IP".$_SERVER['REMOTE_ADDR']."arrived at ".time()."\n"); fclose($handle); $newhost="http://domainB.com"; $url=$newhost.$_SERVER['REQUEST_URI']; header("HTTP/1.1 301 Moved Permanently",true); header("Location: ...


0

You wont actually be able to log this with Google analytics. This would require that the page is loaded before it is redirected. You could try using meta refresh tags on these pages and place your tracking code before the refresh tag. Alternately, parse your server logs with something like AWstats http://www.awstats.org/ Your .htaccess is instructing the ...


2

Well first of all SNI is a server setting not a cert setting. A bit of background here might help: When a browser connects to a https website, it converts the website name to an IP address and then initiates a SSL connection to that IP address (without the address name) and checks the cert returned by the server. Then it sends encrypted web requests ...



Top 50 recent answers are included