I have some .php files but i want them to be accessible via .html like if have dp1.php dp2.php dp3.php .. and so on then i want them to be accessible via dp1.html dp2.html and so on.. I know that it require some thing related to mod_rewrite?? But dont know what actually i have to do... any help??
That will just make html pages be served as if they were .php extension. A request for dp1.html will still be 404 unless that dp1.html page actually exists, rather than reading from dp1.php. You'd need to rename all your .php pages to .html. RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule (.*)\.html $1.php [NC] Code (markup): Something like that in a .htaccess file might be what you're looking for.