IT Guys blog

Information Technology Tips & Tricks

How to redirect traffic to another domain aka 301 redirect


301 Redirect

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It’s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it’s the safest option. The code “301″ is interpreted as “moved permanently”.

You can Test your redirection with Search Engine Friendly Redirect Checker

Below are a Couple of methods to implement URL Redirection

IIS Redirect

  • In internet services manager, right click on the file or folder you wish to redirect
  • Select the radio titled “a redirection to a URL”.
  • Enter the redirection page
  • Check “The exact url entered above” and the “A permanent redirection for this resource”
  • Click on ‘Apply’

ColdFusion Redirect

<.cfheader statuscode=”301″ statustext=”Moved permanently”>
<.cfheader name=”Location” value=”http://www.new-url.com”>

PHP Redirect

<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-url.com” );
?>

ASP Redirect

<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http://www.new-url.com/”
%>

ASP .NET Redirect

<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(”Location”,”http://www.new-url.com”);
}
</script>

JSP (Java) Redirect

<%
response.setStatus(301);
response.setHeader( “Location”, “http://www.new-url.com/” );
response.setHeader( “Connection”, “close” );
%>

CGI PERL Redirect

$q = new CGI;
print $q->redirect(”http://www.new-url.com/”);

Ruby on Rails Redirect

def old_action
headers[”Status”] = “301 Moved Permanently”
redirect_to “http://www.new-url.com/”
end

Redirect Old domain to New domain (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Please REPLACE www.newdomain.com in the above code with your actual domain name.

In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

Redirect to www (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Please REPLACE domain.com and www.newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

How to Redirect HTML

Please refer to section titled ‘How to Redirect with htaccess’, if your site is hosted on a Linux Server and ‘IIS Redirect’, if your site is hosted on a Windows Server.

There is a good resource site that talks into similar details about domain forwarding, search engine friendly methods and so forth. check it out

http://www.webconfs.com 

 


Error code 2738 When Installing iTunes + Quicktime on Windows Vista


I just downloaded the latest iTumes version, but when I tried to install it, I got the following error: 

iTunes Logo

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2738.

After research I found the following link: 

 http://docs.info.apple.com/article.html?artnum=304405

The solution was to re-register vbscript.dll.  I also selected “Run as Administrator” option when I reran after reregistering the dll.

To register the dll, please do the following:

  1. On the Start menu, click Run.
  2. In the “Open” field, enter the following command and click OK.
    regsvr32 vbscript.dll
  3. A message should appear stating that the “DllRegisterServer in C:\WINDOWS\system32\vbscript.dll succeeded.”
  4. Click OK and try installing iTunes or QuickTime again.

Thanks for Apple Support for the posting…


FREE eBay Auction Sniper Service


Have you ever wondered why when you are trying to bid on an otem on ebay and you are the highest bidder then all of a sudden you right before the auction ends, someone comes in and snatches it from you whether it is in the middle of the day or middle of the night, it just happens. The chances are, the person overbidding you is not really sitting in front of the computer, all what this person did is use a sniping program or a website service like Gixen where you enter the ebay item number and the highest amount you are trying to bid and what the website service do is go out a few seconds before the auction ends and place the bid for you. This way you avoid getting into bidding war, you do not have to stick around the computer to find out make sure no one overbids you, and lastly, you bid like a pro.

We have evaluated different programs and website services that offer snipping services, truth told, the real nice one we liked was Gixen. It is a website service that is offered to the public for free and you can bid on as many items as you want. it uses SSL for encypting and securing the data transmission.

Other competitor websites and programs would charge you a fixed percentage of won items or insertion fees.

 I have been using Gixen for a few months and have been very pleased with the service therefore, have decided to share the wealth about this free ebay sniping website service.


PHP error 5.2.4 Getting error “Error in my_thread_global_end(): 1 threads didn’t exit”


We have noticed a few web server admins to be getting an error message Getting error “Error in my_thread_global_end(): 1 threads didn’t exit” when running php on IIS windows servers in CGI. the issue is caused by libmysql.dll found in php directory. The file size for the libmysql.dll was 1.94 MB (2,035,712 bytes).

To fix the issue and clear the error message, you must replace libmysql.dll with an earlier version from release 5.2.1 of PHP.

I noticed many people were not able to get their hands on it so we have uploaded it to our server to make it easily availble.
Download php mysql libmysql.dll


VMWare Host and Guest Cannot Communicate Over Network Shares on Dell PowerEdge and Broadcom TOE


Many people have encoutnered issues with the TOE on the Dell PowerEdge servers (especially the 2900) where it caused weird issues with networking components, most noticeable on VMware boxes and ISA servers.

A few days ago I had the same issue with our PowerEdge 2900 after I upgraded to the latest drivers and firmware, the server was running windows 2003 with SP2 loaded on it, once the server was rebooted, the host OS could not access the guest systems via UNC or RDP ( Remote Desktop) however I was able to ping the guest OS by IP and common name with no issues.

after researching the issue, I discovered, it is a problem with the Broadcom Network Cards, Windows 2003SP2 and the TOE (Tcpip Offload Engine)

I tired many different thigs except uninstalling the SP2 from the Host OS as it was not a fix for me (not good enough solution) so what I did was opened up the case and removed the TOE component which is like a little white adapter that plugs into the motherborad of the 2900 PowerEdge server. The connector itself is like a phone plug. I have attached a picture of the adapter.

To remove the TOE adapter, slide open the case, look in the center next to the CPU, there will be a white chip (looks like a one of those tranceievers) sticking out and labeled TOE 2) Just unplug it (you would unplug it just like how you unplug a phone from a phone jack).

Once I removed the TOE adapter from the server and powered it back on, everything worked like a charm. I phoned Dell and talked to their senior techs and they did elaborate that this was a problem they have been running into recenlty and this was the right fix.

I hope this helps you out. if it does please post to let me know.  

TOE Adapter for Dell PowerEdge 2900

TOE Dell PowerEdge adapter


Video Tutorials for Share Point 2007


Microsoft Share Point 2007 is getting hotter and hotter every day. Knowing Share Point 2007 is goldmine due to the services and features it offers. Yet with the high demand on it, many IT Guys lack the knowledge and understanding of its capabilities and expandabilities.  We did our homework and searched for good resources and found this free video tutorial on Share Point 2007. It is by far one of the best resrouces we have found on the internet for Microsoft Sharepoint 2007.

the website is: Microsoft Share Point 2007 Video Tutorial


Command check computer specs and uptime in windows XP


Ever had a doubt what utilities do what. Windows XP has so many built in features and utilities that most sysadmins do not bother to utilize as they try to find a way of getting by with the same old commands (like ipconfig and stuff) they do not realize that newer OSes often include more utilities that could help in streamlining the support daily tasks and troubleshooting.

Try this command which is built in into Microsoft Windows XP.  

in command prompt, type the following     systeminfo

it will give you good useful information about system configs, system uptime, original install date (windows xp installation) hotfixes installed, NIC card info and so forth. it can be run on another machine remotely.

Here is a systeminfo parameter:

C:\DOCUME~1\aamin>systeminfo /?

SYSTEMINFO [/S system [/U username [/P [password]]]] [/FO format] [/NH]

Description:
    This command line tool enables an administrator to query for basic
    system configuration information.

Parameter List:
    /S      system           Specifies the remote system to connect to.

    /U      [domain\]user    Specifies the user context under which
                             the command should execute.

    /P      [password]       Specifies the password for the given
                             user context. Prompts for input if omitted.

    /FO     format           Specifies the format in which the output
                             is to be displayed.
                             Valid values: “TABLE”, “LIST”, “CSV”.

    /NH                      Specifies that the “Column Header” should
                             not be displayed in the output.
                             Valid only for “TABLE” and “CSV” formats.

    /?                       Displays this help/usage.

Examples:
    SYSTEMINFO
    SYSTEMINFO /?
    SYSTEMINFO /S system
    SYSTEMINFO /S system /U user
    SYSTEMINFO /S system /U domain\user /P password /FO TABLE
    SYSTEMINFO /S system /FO LIST
    SYSTEMINFO /S system /FO CSV /NH

I hope you find this tool useful and helpful. If so let us know and we will post more.

If you have tips to share, please do not hesitate to contribute.


Goodlink stops syncing contacts on Treo Palm or other PDA devices


If you have a device running Good Messaging (formerly known as GoodLink) and it stops syncing, the first thing to do is make sure you have a data connection by attempting to go out to an internet site (such as www.google.com) from your device. If that doesn’t work, then contact your wireless provider, because your data connection is not available or you have no data coverage where you are. If you can get out to website, you probably just need to reset the Goodlink software.

 Here are instructions for to reset your goodlink software on a treo or a PDA device:

  1. On your wireless device, go into Good Preferences | About Good Mobile Messaging
  2. Type in “debug” without quotes. You will not see the text on the screen as you type, but it will open a hidden command prompt.
  3. When a command prompt window opens, type in “reprov” without quotes and press the enter key.
  4. You will be prompted that this will erase all data from the handheld. This only refers to data synced with the Good software. Type in “yes” without quotes and press the enter key.
  5. Your device will restart and the Good software will resync all of your emails/calendar/contacts/etc.

This usually does the trick and all should work like a charm.

I hope this tip helped you out.


RSS Readers Sharp Reader


I remember back in the days when I had two or three favorite sites, but nowadays, with so many different topics, gadget news, website deals, and more, it is hard to keep visit all of them more often, this is where RSS comes to the rescue and offer you the ease of keeping up with all the sites in one simple application with highlights of each website… Not all website have RSS capability, but it is becoming more and more common.

There are two main ways to get the RSS feeds, the first way is through a web application (kind of like different Google Reader where you have to have your web browser open and logged in to your Google account, Yahoo, and MSN offer it too) or a desktop application where you can open it up like Microsoft Outlook… I have been through a few RSS readers and found Sharp Reader to be the best one out there due to its simplicity, new RSS notifications, and most of all, stability (the coolest thing, it is FREE).

Download Sharp Reader Software RSS Reader


PST Password Recovery for Microsoft Outlook Free


So many passwords, only a few can be remembered, the ones that are hard to remember usually are the ones that are seldom used. This is the case with my friend Jane who setup a password on her PST file a few months ago and now needed to get some emails out of it, the only problem is she could not open it as she did not know the password.

Thankfully, when she called me, I had the PST Recover Password utility available and was able to crack it open. It is a free utility, almost impossible to find one like it for free.

Download Recover PST Password for Microsoft Outlook