Hi, I would like to ask you, if you can help me with this: I have PHP website with URL structure as www.domain.com/blue-cars.PHP and I need to do the following: when I type in browser www.domain.com/blue-cars.HTML then I would like the URL blue-cars.PHP to be run, but shown as blue-cars.HTML in the browser - to the visitor and also to the bots. also the sitemap and all navigations should have visible URLs with .HTML , but their .PHP versions should be run (execute)... how can I do this? (I suppose using htaccess ? but how?) thanks for you help!
Take a quick look at this for rewriting your URL with the .htaccess http://corz.org/serv/tricks/htaccess2.php
Put this in your .htaccess file: Then add the following to "blue-cars.HTML", inserting this where you want to include the PHP file:
Hi! I did what you wrote (see bellow) - it works perfect in Firefox and Opera browsers, but MS Explorer 8 does not show the page correctly - the segments are mixed up on the page - I tried to fix this issue for several days, but no success... somebody can help? thanks! Put this in your .htaccess file: Quote:AddType application/x-httpd-php .html Then add the following to "blue-cars.HTML", inserting this where you want to include the PHP file: Quote:<?php include ("blue-cars.php");?>
This is most likely an IE issue versus anything to do with what you added to .htaccess. Whatever that PHP file is outputting might have display issues in IE if being included in another page.
thanks for your reply, I have added this to htaccess: AddType application/x-httpd-php .html and then I have index.php included in index.html using this: <?php include ("index.php");?> IT GIVES ME PHP OUTPUT when I write to browser index.html - IT WORKS GREAT IN OPERA AND FIREFOX, BUT NO EXPLORER 8... :-(