Below configs helped me fixing issue with pages other than homepage which was giving a 404 error because of url rewrite issue.
Make sure URL Rewrite module is installed on IIS.
Open IIS Manager -> go to your site -> “URL Rewrite” so double-click it.
In the top-right click “Add Rule(s)”
Select “Blank Rule” under “Inbound Rules” and click OK.
Enter “Strip index.php” in the Rule Name text box.
Enter “^(.*)$” into the pattern text box.
Expand Conditions and add a rule each for “Is not a file” and “Is not a directory”
Under Actions, in the Rewrite URL text box enter “index.php/{R:1}” and untick “Append query string”
Click “Apply”
Edit your CI system/application/config/config.php file and set $config[‘index_page’] = “”;
Good Luck :)
Wednesday, May 30, 2012
Wednesday, May 9, 2012
Custom Run Command
Create your own Run Command
========================
========================
Step 1: Go to “Start,” “Run,” and type regedit.
Step 2: Navigate to the following:
HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows\ CurrentVersion\Apps Path
Step 3: Create a new folder/key under Apps Path. (Right-Click Apps Path and click “New,” “Key.”)
Step 4: Title the new folder/key the name of the application, e.g. firefox.exe.
Step 5: Right-Click the default string value and click Modify.
Step 6: Change the value to the path of the executable you are attempting to run. E.g. C:\Program Files\Mozilla Firefox\firefox.exe.
Step 7: Create a new “String Value” by right-clicking under the default value and select “New,” “String Value.” Name it Path and enter the value as the same path you previously entered.
(I haven't tested it yet, if u guys find any probs, pls comment)
Wednesday, May 2, 2012
Set adodb connection in Windows Server 2008
Use the below tool for setting Adodb connection in Windows 2008 Server
c:\Windows\SysWOW64\odbcad32.exe
:)
c:\Windows\SysWOW64\odbcad32.exe
:)
Enable ASP error on IIS7
As a result of security paranoia, ASP's default behavior of sending script errors (including line number and code snippet to the browser has been turned off . So instead of seeing the typical error you would see ASP throw, you will now see this:
------------------------------------------------------------------------------------------------------------
An error occurred on the server when processing the URL. Please contact the system administrator
------------------------------------------------------------------------------------------------------------
To revert back to IIS6- behavior, simply run the following command:
%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true
Enjoy :)
Subscribe to:
Posts (Atom)