Enable SEF on Joomla 1.6 with IIS6

I was informed by a customer that when installing Joomla 1.6 with IIS 6 server, and if you enabled SEF (Search Engine Friendly), you will get an Error 404 pages not found error.

To fix this issue, simply add the following line just after the php tag from index.php file and it will look like,

<?php:

if ( isset( $_SERVER[ 'HTTP_X_REWRITE_URL' ] ) )
{
$_SERVER[ 'REQUEST_URI' ] = $_SERVER['HTTP_X_REWRITE_URL' ];
}

 

WebSitePanel: IIS & FTP issue with Windows Server 2008 R2

If you are using Windows Server 2008 R2 and IIS 7.x plus FTP 7.x. You might facing a problem like can not add virtual directory for website or FTP in your WebSitePanel.

To overcome this problem,

1. Download Patches file from below,
MS IIS 7.x and FTP 7.x issues on Windows Server 2008 R2 SP1, here.
WebsitePanel Server 1.1.0 (Win2K8 R2 SP1 Fix).zip, here.
2. Backup the WebSitePanel Server’s bin folder.
3. Extract file from Step 1.
4. Replace the bin folder from step 3.

[via sourceforge]

Get the server variable from ASP.Net

It is very often a developer or programmer want to know the system/server variable of a server that without their right to access to the server back-end.

With ASP.Net, you could get the server variable through scripting.

When you need these information from your IIS based server, create a aspx file named variable and place the script as below based on C# or VB.

VB

<% @ Page Language="VB" %>
<%
For Each var as String in Request.ServerVariables
Response.Write(var & " " & Request(var) & "<br>")
Next
%>

C#

<% @ Page Language="C#" %>
<%
foreach (string var in Request.ServerVariables)
{
  Response.Write(var + " " + Request[var] + "<br>");
}
%>

Well Done, hope this is useful for the programmer.