JohnCanyon

msg:819047 | 8:42 pm on Oct 1, 2005 (gmt 0) |
You could just make .htm executable by .php. To accomplish this you will need access to either .htaccess or php.conf (if you are using apache 2). for .htaccess you can add the following. <Files *.htm> AcceptPathInfo on SetOutputFilter PHP SetInputFilter PHP </Files> php.conf <Files *.htm> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files> J
|
netmarketingsolution

msg:819048 | 9:17 pm on Oct 3, 2005 (gmt 0) |
That trick smell cloaking?!. instead is not. Use it carefully.
|
frobn_1

msg:819049 | 1:10 am on Oct 6, 2005 (gmt 0) |
Here is another way that will get php to execute in a html file. It will work on most servers but not all. Put in .htaccess RemoveHandler .html .htm AddType application/x-httpd-php .php .html You can also use a rewrite rule I am not sure that this is correct, perhaps someone else can verify it. RewriteRule (.*)\.html$ $1\.php
|
TymArtist

msg:819050 | 9:40 pm on Oct 18, 2005 (gmt 0) |
I'm actually in the process of redesigning my site in the exact same way, with the exact same problem - i want everything .php rather than .html, but i don't want to end up with page not found errors for the listings in google amongst other search engines. do you feel that redirects in .htaccess is considered cloaking or frowned upon by the directories and search engines, even if it is just a temporary solution?
|
frobn_1

msg:819051 | 10:04 pm on Oct 18, 2005 (gmt 0) |
| do you feel that redirects in .htaccess is considered cloaking or frowned upon by the directories and search engines, even if it is just a temporary solution? |
| RewriteRules are not cloaking and are not redirects as they do not redirect the page, they only change the url name. Cloaking is used to redirect search engines to a different page. RewriteRules are commonly used to make dynamic urls user friendly. I have never had problems with them and I haven't heard of any problems with search engines.
|
|