This tutorial is for medium level users.
Yesterday, I downloaded a free flash template from internet, and I directly faced a problem. The template had this structure:
index.html
text.html
flashfile.swf
images/
As you may understand, all the content used for menu and for pages was stored into the text.html as a normal text document, but I wanted that the content into the website to be dynamic (updating pages from database). But, changing from text.html to text.php will not do the job as the flash file will request for text.html and will not find it.
So, I thought for a way of "manipulating" the text.html to be treated as text.php but still remains text.html in the flashfile.swf's eyes. Adding this short code into .htaccess parallel with other files will do the job:
But now the new servers will need this code:
or
The above case it's just one of many others you may need to do this. Another case may be if you have a big site in html, and you want to convert it into a database driven one, but renaming files from .html to .php will just cause loose of visitors, because they have stored your pages as bookmarks as .html.
Hope it was helpful for you and you will know to manage it in your own interes.
Yesterday, I downloaded a free flash template from internet, and I directly faced a problem. The template had this structure:
index.html
text.html
flashfile.swf
images/
As you may understand, all the content used for menu and for pages was stored into the text.html as a normal text document, but I wanted that the content into the website to be dynamic (updating pages from database). But, changing from text.html to text.php will not do the job as the flash file will request for text.html and will not find it.
So, I thought for a way of "manipulating" the text.html to be treated as text.php but still remains text.html in the flashfile.swf's eyes. Adding this short code into .htaccess parallel with other files will do the job:
Code:
AddHandler x-httpd-php .html .htm .php
Code:
AddHandler application/x-httpd-php .html .htm .php
Code:
AddType application/x-httpd-php .html .htm .php
Hope it was helpful for you and you will know to manage it in your own interes.
Comment