开发者

url rewriting asp .htaccess file

I just moved my website (开发者_开发问答asp.net) to the live environment. I realized they are running IIS 6 so all my nice and clean url rewriting doesn't work anymore. I was trying to implement URL rewriting using the .htaccess file.

I want to rewrite:

www.amicobio.co.uk/Menu.aspx to www.amicobio.co.uk/Food-Menu

So in .htaccess I set:

CaseInsensitive On
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^Food-Menu$ Menu.aspx

But it doesn't work it says:

The requested URL /a/m/amicobio.co.uk/public/Menu.aspx was not found on this server.

Obviously the path is wrong but what is /a/m/ and how do I fix it? All the files in amicobio.co.uk/public/

Thanks.


I found the solution

it was

RewriteRule ^Food-Menu /Menu.aspx

in stead of

RewriteRule ^Food-Menu$ Menu.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜