===================
Customer had hosting previously on a windows server, he was using .asp pages for his website. He wants to shift to Linux server without changing the .asp pages. So these pages should be interpreted as .php pages by Linux server, for that just add the following rules in the .htaccess file.
=====
RewriteEngine On
Options +FollowSymlinks
AddHandler application/x-httpd-php .asp .aspx
=====
If RewriteEngine is already ON on the server then ignore that line.
Then add index.asp in /usr/local/apache/conf/httpd.conf
Please refer below for adding index.asp
DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm index.asp
Restart httpd, try accessing the site. If that doesn?t brings up the index.asp page by default then just try the same by commenting
# Options +FollowSymlinks in .htaccess
No comments:
Post a Comment