I’m working on Ubuntu.(Linux)
I want to display all .php pages to .html in the browser, using .htaccess.
Where all php files are in the folder ‘test’
e.g one.php should be one.html like and all other files too
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You mean all requests made on a X.html page to be served as X.php by the server…
If you mean this then you have to write a ReWrite Rule in the .htaccess file that Directs apache to serve any requests for X.html as requests to X.php.
You can check the following urls for details
http://www.modrewrite.com/
http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html
You can also try