RewriteEngine On
# RewriteBase /

#if the first parameter after current directory is:
# index.php
# robots.txt
# Style (folder)
# js (folder)
# css (folder)
# treat it as normal file instead of rewrite it

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

# Ajax Framework 
<IfModule mod_rewrite.c>
	RewriteEngine On

	#	If you are having problems with the rewrite rules, remove the "#" from the
	#	line that begins "RewriteBase" below. You will also have to change the path
	#	of the rewrite to reflect the path to your base path.
	#RewriteBase /


RewriteRule  ^/?ajax/(.*)$	ajax.php?$1 [NC,QSA,L]
</IfModule>