I need a regular expression to do the following:
if someone goes to [url]http://example.com/a[/url] the actual served page is [url]http://example.com/a.php[/url]
and also [url]http://example.com/a/b/c/d[/url] to render [url]http://example.com/a_b_c_d.php[/url], etc.
[code=php] RewriteRule ^http://example.com/([a-z]{1})$ http://example.com/$1.php RewriteRule ^http://example.com/([a-z]{1})/([a-z]{1})/([a-z]{1})/([a-z]{1})$ http://example.com/$1_$2_$3_$4.php [/code]
Help @ck_bullet spread the word by sharing this article on Twitter...