Archive for category General

Redirect to www with htaccess

Many webmasters don’t take any steps to ensure their website is accessed with and not One reason to do this can include the presentation of your site in Google’s search results. Another reason is when you don’t control what address is presented, Google will make the decision for you. This can lead to issues with duplicate content, splitting of page rank and other SEO benefits, along with confusion when monitoring results in tools like Google Webmaster Tools.

When a person links to your site, they may simple link to Another person may link to This would be like looking at vs Google treats these as different websites and can be harmful to the overall rankings for your site. It is generally a good idea to decide if you want to redirect non www to www.

The solution to this is a rather easy htaccess rule. To setup a htaccess rule you would create a file called .htaccess in the root folder of your website, sometimes referred to public_html/, or htdocs/.

To enable mod_rewrite, enter this line first if it doesn’t exist already:

RewriteEngine on

Then you would put this below:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

The first line reads the HTTP_HOST, and determines of the first 3 characters are www or not. If they are not, it continues onto the second line.

The second line takes the HTTP_HOST requested initially, and simply adds www. to it. The R=301 says that this is a HTTP code 301 permanent redirect, and the L tells the code to stop the rewriting process here and don’t apply any more rewrite rules.

To sum it up, a simple .htaccess file to redirect non www to www would be:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

It is also possible to redirect to The code below will do that:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

I hope this simple mod_rewrite rule will help when you decide to redirect non www urls to www, or the other way around.


Help Fill Food Shelves

Kare 11 & Land O’Lakes are donating $1 for every person who clicks on their web site. Go to the website listed below and in the upper right corner you will see a small banner: You Click, We Donate . Just simply click on that banner. It’s that easy.

All it takes is a few seconds, and the money generated can go a long way to help people in need.

No Comments

It Wasn’t Me

I noticed a spike in traffic yesterday and wondered what the heck was going on. I looked more into it and found out someone with the same name as me had charges filed against them for Conspiracy to Commit Securities Fraud.

More information can be found here:

I’d just like to say that if you made it here searching for that guy, I’m not him.

I’m a 24 (25 in a couple days) year old IT geek from Minnesota, not a manager for a hedge fund committing suspected insider trading.

No Comments

Taking a step back

Well I got this site up and going, got on to the first page of when searching Google for Steve Fortuna…and I have no readers.

Blogging to myself is a blast!  Haha, no.  Blogging is kind of entertaining, but not really my thing.  I’m going to take a step back, and focus less on posting regularly.  What’s the point, right?  When the traffic picks up, or I come up with some really good post ideas, I wont hesitate to post.

And I’m out.


Hello world!

Welcome to  For fun today I googled myself, and saw this domain I picked up sometime last year show up on page three.  Being a SEO (search engine optimization) enthusiast, I decided to see if I could move this site up a few pages.  Afterall, I am Steve Fortuna.  I figure why not give myself some control over the results if anyone did happen to search for me.

The purpose of this blog is really undecided as of now.  I guess I just want to give myself a spot to put some ideas out.  The topics of this blog, which are generally hobbies of mine, may include: Linux, search engine optimization (SEO), online gaming, online marketing, hosting (web/dedicated/other), and probably other technology related items.

There is no clear focus of this blog, except to see if I can rank for the keyword “Steve Fortuna”.  I imagine with the domain, some content, and some minor tweaks SEO orientated, it shouldn’t be hard at all.

Further down the road I will probably update and personalize this blog a little more, but this is a start for now.

Hello everyone (or no one at this point) and welcome to my little place on the Internet.