开发者

Url rewrite and forced 404

开发者 https://www.devze.com 2023-01-18 17:12 出处:网络
We serve our content via ourdomain.com/folder. 开发者_如何学CThe next iteration of the application is ready to be rolled out in ourdomain.com/folder2.

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

精彩评论

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