Hi.

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
Code:
<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]  
</IfModule>
index.php file
Code:
<?php
		
	if(isset($_GET['url']))
		echo "Action: ".$_GET['url'];
	else
		echo "Action: none";
		
?>
My base directory is
127.0.0.1/xampp/testcodes/urlmod
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.