Old Clock

Migration of the old posts

When making this website I intentionally did not migrate any of the old posts. The reasons are many, including the lack of knowledge in some areas. For example, I did have a CCNA certification and was working on obtaining a CCNP, but life happened and I simply devoted much more of my time toward Web Development and various other personal projects and simply abandoned my CCNA/CCNP ambitions. Currently, it does not seem I will ever return to it, except as a hobby maybe. But even this is doubtful. As a result of these developments, I would not be able to answer the questions about it, so I did not see any point in keeping these posts alive.

Read More
No worries - just copy and paste

Three Web.config tricks - force HTTPS, force yes/no www subdomain

No worries series is designed to do just that - enable you to say "no worries", just copy the code and fire it up. For the first post in the series, we'll do two simple, but very common requirements using some web.config tricks. So, let's get into it.

Force HTTPS


<system.webServer>
<rewrite>
	<rules>
		<clear />
		<rule name="Redirect to https" stopProcessing="true">
			<match url=".*" />
			<conditions>
				<add input="{HTTPS}" pattern="off" ignoreCase="true" />
			</conditions>
			<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
		</rule>
	</rules>
</rewrite>
</system.webServer>

Sometimes you'll get a requirement to have content available only through www subdomain or without it.

Remove www subdomain


<system.webServer>
<rewrite>
	<rules>
		<clear />
		<rule name="Remove www" stopProcessing="true">
		  <match url="(.*)" ignoreCase="true" />
		  <conditions logicalGrouping="MatchAll">
			<add input="{HTTP_HOST}" pattern="^www\.(.+)$" />
		  </conditions>
		  <action type="Redirect" url="http://{C:1}/{R:0}" appendQueryString="true" redirectType="Permanent" />
		</rule>
	</rules>
</rewrite>
</system.webServer>

Read More
Php FastCGI

Handler PHP_via_FastCGI has a bad module FastCgiModule in its module list

I have seen that a lot of people visit this site when searching for:

Handler "PHP_via_FastCGI1" has a bad module "FastCgiModule" in its module list.

So, here's how to fix it.

Read More
Code with DomagojSalopek.com logo

I am back

That's right. After two and a half years of being inactive, this website will be alive once again. Sorry that old content was not preserved, but these days it belongs only in the archive anyway - it would not be of use to anyone.

The most useful things would be the networking posts, because AFAIK - and that's a big AFAIK because my CCNA has expired and I didn't refresh it - not much has changed in the world of getting certifications, so networking might be useful to some, but at this point I am not willing to invest time to migrate it. The previous version of the site used BlogEngine .NET and this one is using a beta version of own CMS, so there's no possibility to migrate it automatically without some development, which means - either development or I do it manually.

That is not to say that I won't transfer anything ever, but for now, it seems like it's gonna be a brand new start.

For those who are new - and let's face it, after 2.5 years of inactivity everybody's new - my name is Domagoj Salopek and I am a Web Developer. I have been in the Web area professionally for about give or take 10 years, started with Perl, then PHP and these days I'm all about Microsoft..

Read More

Quick Facebook Page Tip - Post in Multiple Languages

I don't spend much time on Facebook, and I'm sad to say, even my Facebook page is not very active. Also, I'm not a social media guru, so I missed the announcement and no doubt lengthy discussions about page posts in multiple languages.

As a Croatian, who lives in Germany, but posts in English, I find this option awesome. Now I can make posts in both English and Croatian ... maybe even German, when my German gets much, much better.

So, here's how to turn it on.

1. Go to your page -> Settings

Sure you can find this, it's in the bottom right corner, next to "Help".

Read More