R0bb0b Posted October 11, 2008 Share Posted October 11, 2008 Sometimes I will come across a site with html pages that are clearly developed with php. For example, if you go to daniweb, their forums have an html extension in the address bar but the data is clearly pulled from a database on the fly. Here is the header info: Date: Sat, 11 Oct 2008 07:25:31 GMT Server: Apache/2.2 X-Powered-By: PHP/5.1.6 Cache-Control: private Pragma: private Keep-Alive: timeout=10, max=400 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8 200 OK They are using php 5.1.6 and I'm sure this is a php page masked to be html. How is this done, mod rewrite or is there another trick to it? Quote Link to comment Share on other sites More sharing options...
Sangha-08 Posted October 11, 2008 Share Posted October 11, 2008 Its pretty easy to be honest... heres what I use in my .htaccess Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)\.php $1.html Quote Link to comment Share on other sites More sharing options...
R0bb0b Posted October 11, 2008 Author Share Posted October 11, 2008 OK, another question. does this fool search engines or is it a waste of time. Quote Link to comment Share on other sites More sharing options...
Sangha-08 Posted October 11, 2008 Share Posted October 11, 2008 OK, another question. does this fool search engines or is it a waste of time. if this was a waste of time then why would anybody use it lol yes, it works great and manages to fool search engines Quote Link to comment Share on other sites More sharing options...
R0bb0b Posted October 11, 2008 Author Share Posted October 11, 2008 OK, another question. does this fool search engines or is it a waste of time. if this was a waste of time then why would anybody use it lol yes, it works great and manages to fool search engines True. Cool thx. Quote Link to comment Share on other sites More sharing options...
Sangha-08 Posted October 11, 2008 Share Posted October 11, 2008 Could you please mark this topic as solved, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.