Forum Moderators: phranque
I am guess tis a simpe thing, but what is the exact code, placed somewhere in .htaccess tp cause
index.aspx to be parsed as if it where index.php
i would like to place php
301 code in
index.aspx
none of the following below worked, i've commented them all out of .htaccess, from checking on the internet, it appears to be something to do with my hosts linux/apache/php implementation,
the host is the really cheap, really big, with funny tv ads host, allez pere :)
I found a thread that offered a solution, but I can't figure the syntax, whats xyz
[webmasterworld.com...]
Code I have tried is below
Code to enable redirection from aspx files to php
#AddHandler application/x-httpd-php .aspx
#AddType text/aspx .php
#AddHandler php-script .php .aspx
#RemoveHandler .aspx
#AddType application/x-httpd-php .php .aspx
#RemoveHandler .html .htm
#AddType application/x-httpd-php .php .htm .html
#AddType text/aspx .php
#AddType application/x-httpd-php .php .html .htm .asp .aspx
#redirectpermanent /default.aspx [mydomainname.com...]
#redirectpermanent /default.htm [mydomainname.com...]
#redirectpermanent /default.php [mydomainname.com...]
#AddHandler server-parsed .php .aspx
# /web/cgi-admin//phpinfo4.php4
# script from internet
# ScriptAlias /cgi-bin/ "/web/cgi-admin/"
# General
#AddHandler cgi-script .php
#AddType text/html .php
# hosts code
# AddHandler x-httpd-php5 .php
# AddHandler x-httpd-php .php4
# AddType application/x-shockwave-flash swf
# AddHandler x-httpd-php .aspx
# AddType application/x-httpd-php .php .html .htm .asp .aspx
# AddType application/x-httpd-php .php .aspx