繁体   English   中英

如何在opencart中更改新的html页面的URL?

[英]How to change the url of a new html page in opencart?

我在opencart 2.0.3.1的根目录中创建了一个新的Php页面,例如test.php

现在的地址是: my_domain.com/test.php ,但是我希望它成为: my_domain.com/test

我该怎么做呢?

您可以做的是:

您现在拥有的是:

Root
    index.php
    test.php

您可以做的是:

Root
    index.php
    test
        index.php

网站将始终寻找索引文件。

如果创建一个新文件夹(在本例中为“ test ”)并在其中放置索引,则页面地址将如下所示: my_domain.com/test

另外,如果您想从index.php链接进行测试。 您可以简单地执行以下操作:

<a href="test/">Link</a>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM