I must redirect all web addresses in the web page (no matter what what's following the domain title) to some single web page which will analyse the entire url and can show the great page and knowledge. I understand it is possible with Mod_Rewrite and taking advantage of some PHP function to find the URL however i aren't able to find worthwhile web page showing the steps and just how to get it done.

My questions are:

1)Have you got any reference will be able to find out about it?

2)Do you consider it's a great way to get it done, I'm changing an internet site that should be more Internet Search Engine friendly and require to possess nice url formatting?


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

Which will redirect everything that does not exist to index.php.

This really is known as the Front Controller pattern.