Virtual Directory The following operations, in W2K3 e version, IIS 6, free of virtual directory test through, to solve a part of the virtual host users can not create a virtual directory, or put dvnews in the root directory due to a large number of files exist and manage the problem of trouble.
1. First copy the Dvnews/bin directory to the site root directory
2. Make the following modifications to the Dvnews/web.config document
<RewriterRule>
<lookfor>~/Replace your dvnews directory/C (\d{1,8}) \.aspx</lookfor>
<sendto>~/to your dvnews catalogue/.aspx?cid=$1</sendto>
</RewriterRule>
<RewriterRule>
<lookfor>~/Change your Dvnews directory/C (\d{1,8}) p (\d{1,6}) \.aspx</lookfor>
<sendto>~/to your dvnews catalogue/list.aspx?cid=$1&page=$2</sendto>
</RewriterRule>
<RewriterRule>
<lookfor>~/Change your Dvnews directory/n (\d{1,8}) C (\d{1,8}) \.aspx</lookfor>
<sendto>~/to your dvnews catalogue/show.aspx?id=$1&cid=$2</sendto>
</RewriterRule>
<RewriterRule>
<lookfor>~/Replace your dvnews directory/n (\d{1,8}) C (\d{1,8}) p (\d{1,8}) \.aspx</lookfor>
<sendto>~/to your dvnews catalogue/show.aspx?id=$1&cid=$2&page=$3</sendto>
</RewriterRule>
Save the changes you made
3. Copy the Dvnews/web.config file to the root directory of the Web site, and then demo:
http://221.5.116.233/Dvnews%203.2.1013/(this link, not long-term valid)
Other (subsequent) versions should also apply (not tested)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.