Pages

Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Saturday, August 06, 2011

CodeIgniter 2.x.x : Remove 'index.php'

There is a couple of things that changed since the last release. It’s been mentioned here a couple of times in the last week, but this is what has worked for me:

for htaccess


RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

or


RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ ./index.php/$1 [L]


both work for me. Be sure to change

$config['uri_protocol']="REQUEST_URI";
in config.php, the auto option doesn’t work.

Don’t forget the $system_path and $application_folder in index.php to your folders.

Source : Coccodrillo
http://codeigniter.com/forums/viewthread/180566/

Thursday, June 17, 2010

Virtual PC/Windows CE Emulator Problem

Consider the following scenario. You install a Microsoft Windows CE emulator, Microsoft eMbedded Visual C++, Microsoft Visual Studio 2003, or Windows CE Platform Builder on a computer that is running Windows XP or Windows XP Service Pack 2 (SP2). The computer has Data Execution Prevention (DEP) hardware. You restart the computer. In this scenario, you receive the following error message:

Virtual PC/Windows CE Emulator

A driver is installed that causes stability problems with your system. This driver will be disabled. Please contact the driver manufacturer for an update that is compatible with this version of Windows.

Solved:
To resolve this problem and to run Window CE 4.x Emulator, disable hardware-based DEP on the computer that is running Windows XP SP2. To do this, follow these steps:
Click Start, click Run, type sysdm.cpl, and then click OK.
In the System Properties dialog box, click the Advanced tab.
Under Start and Recovery, click Settings.
In the Startup and Recovery dialog box, click Edit.
Disable PAE mode by removing the /pae option if it exists.
If you are using Windows XP SP2, remove the /noexecute option if it exists, and then add the /execute option.
On the File menu, click Save.
To exit Notepad, click Exit on the File menu.
To close System Properties, click OK two times.
Restart your computer.

Source : http://support.microsoft.com/kb/891667