简体   繁体   English

OXID 从 localhost/source 开始,我想从 localhost 开始

[英]OXID starting on localhost/source, I want to start it at localhost

我的 OXID 存储在 localhost 上以 http://localhost/source 开头,但我只希望它以 http://localhost 开头。

You need to change the DocumentRoot setting in your httpd.conf file.您需要更改 httpd.conf 文件中的 DocumentRoot 设置。 You also have to change the corresponding Directory Setting in the same file.您还必须在同一文件中更改相应的目录设置。 Both should point to the "source" directory.两者都应指向“源”目录。 How do I change the root directory of an Apache server? 如何更改 Apache 服务器的根目录?

In your Oxid installation you then have to change the "sShopURL" setting in config.inc.php to http://localhost/, and additionally you have to change "RewriteBase /source" to "RewriteBase /" in your .htaccess file (both of these files are in the "source" directory of your shop).在您的 Oxid 安装中,您必须将 config.inc.php 中的“sShopURL”设置更改为 http://localhost/,此外您必须将 .htaccess 文件中的“RewriteBase /source”更改为“RewriteBase /”(这两个文件都在您商店的“源”目录中)。

Remember that you have to remove the write protection from the config.inc.php file in order to edit it.请记住,您必须从 config.inc.php 文件中删除写保护才能对其进行编辑。 One more Tip: if you are using xampp you can edit the httpd.conf file and restart apache in the xampp control panel.另一个提示:如果您使用的是 xampp,您可以编辑 httpd.conf 文件并在 xampp 控制面板中重新启动 apache。

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

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