开发者

url rewriting asp .htaccess file

开发者 https://www.devze.com 2022-12-25 02:50 出处:网络
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

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

精彩评论

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

关注公众号