cyphun wrote:
Thanks for the reply, but that is working for me either
I guess you mean it does not work for you.
Ok then, keep with the latter (without IfModule) and post your error. If it is 404, 403 or something like that, you have error in your rule (denied access to index.php or missing file). If it is 50x, you have a syntax error or not loaded module.
Also try if your .htaccess is working properly - try to deny or allow access to all and see if something changes.
You do not write which distro you use but is it possible you don't have rewrite module at all (no .so file) or it isn't in specified directory?
Don't forget to check /var/log/apache/error_log to see if there isn't any clue.