开发者

How to create virtual paths to files on web server?

I have two files: file1.php and file2.php in a directory that contains more files. I want to change the path of these two files to be ne开发者_如何学Gowdir/fileX.php . I would like to do it without actually changing their physical position, because of images and stuff that appear on these pages. Running Apache on Linux

Can I do it?

Thank you.


You can do it using symbolic links. In the terminal go to the newdir directory and type:

ln -s path/to/phpfiles/file1.php
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜