[s]A user goes to http://site.com/code.do
If code.do does not exist, open code.php, but shows code.do[/s]
Edited. I got this far with what I was asking to do...
if a user goes to site.com/code.do and there is not a file named code.do or a directory it will open code.php:
Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)\.do $1\.php [L]