开发者

Url rewrite and forced 404

We serve our content via ourdomain.com/folder.

开发者_如何学C

The next iteration of the application is ready to be rolled out in ourdomain.com/folder2.

If a user tried to access ourdomain.com/folder2 directly he would get a 404.

I need a to get a rewrite rule that serves the content of ourdomain.com/folder2 under the url ourdomain.com/folder and gives the 404 for direct access to ourdomain.com/folder2.


Why bother with mod_rewrite? Can't you just rename the subdirs?

mv folder folder.old
mv folder2 folder
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜