0

i searched but i couldn't manage the situation.

Site has bad structure so i put new framework's index file in directory under document root, called "web".

So, is there a htaccess solution to use url

www.anysite.com/alias-name/(*)
www.anysite.com/another-alias-name/(*)

Points to

www.anysite.com/web/(*)

While old structure links still work as usual.

I tried rewrite rule but it changes url that is not desired.

4

1 回答 1

0

试试这个 htaccess 代码:

Alias /web/ /alias-name/
Alias /web/ /another-alias-name/
于 2013-07-16T11:18:24.870 回答