| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 573
![]() ![]() | |
| |
| | THREAD STARTER #3 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 573
![]() ![]() | Thanks but now PHP files do not run with .html. Just some advice: do not choose 1and1 for web hosting
__________________ Encenta - Amazon Associates CMS |
| |
| | #4 (permalink) |
| New Member Join Date: Jul 2008
Posts: 2
![]() | Greetings. ????: NamePros.com http://www.namepros.com/showthread.php?t=487777 You can configure your apache to process php in .html files a much easier way than using rewrites and .htaccess Just edit your config file for the php apache module and add .html to the end of the line. Here is an example. Code: AddType application/x-httpd-php .php .phtml .php3 .html Code: php.conf Regards, Richard. |
| |
| | THREAD STARTER #5 (permalink) |
| SQLdumpster.com Join Date: Jun 2005 Location: West Sussex, UK
Posts: 573
![]() ![]() | Hi Richard. Thanks for your help and welcome to Namepros. I think this will be the likely solution (using the .htaccess though and not the conf file). The problem is; with 1and1, you have to use an alternate method which is a bit of a snag: Code: AddType x-mapp-php4 .html
__________________ Encenta - Amazon Associates CMS |
| |
| | #6 (permalink) |
| New Member Join Date: Jul 2008
Posts: 2
![]() | Perhaps I did not understand what you wanted to do. I thought you wanted to execute PHP from .html files ? If you want your .php to be used as .html, then rename them to .html and 301 the old .php to the .html and you're done. Keep it simple and don't confuse the user or the SE's. - Richard |
| |