I am currently working on building a custom CMS. I am stuck with the mod rewrite function/rule.

For the past week, I have been going through various tutorials, text & videos; but this thing doesn't seem to work properly for me. It keeps giving me 404 Error pages; no matter what I do.

.htaccess file
<IfModule mod_rewrite.so>
	RewriteEngine On
	RewriteCond %{REQUEST_FILENAME} ! -d
	RewriteCond %{REQUEST_FILENAME} ! -f
	RewriteCond %{REQUEST_FILENAME} ! -l
	RewriteRule ^(.*)$	index.php?url=$1	[QSA,L]  
index.php file
		echo "Action: ".$_GET['url'];
		echo "Action: none";
My base directory is
I saw in many tutorials that the 'IF' condition in the .htaccess file is not required. But if I remove it, I keep getting Error 500.
Can anyone help me out?

It is also not working for Joomla & Wordpress which I have installed locally. Getting Error 404 pages.