【问题标题】:Xampp Server and PathsXampp 服务器和路径
【发布时间】:2013-01-09 22:40:38
【问题描述】:

我在使用 xampp 时遇到了困难,这真的让我发疯了。 我很少安装带有根模板的 Wordpress,它在没有任何 css、js..etc 的情况下加载。解决方案是删除 Boilerplates 默认的 .htaccess 并添加:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^assets/css/(.*) /wp-content/themes/test_template/assets/css/$1 [QSA,L]
RewriteRule ^assets/js/(.*) /wp-content/themes/test_template/assets/js/$1 [QSA,L]
RewriteRule ^assets/img/(.*) /wp-content/themes/test_template/assets/img/$1 [QSA,L]
RewriteRule ^plugins/(.*) /wp-content/plugins/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

现在我面临同样的问题,但使用 HTML5 Boilerplate 和 Twitter-bootstrap,没有复杂代码的标准 html5 文件。我试过使用:

 dirname(__FILE__);

它仍然无法找到文件。有人遇到同样的问题并找到了解决方案吗? 提前致谢。

【问题讨论】:

    标签: php apache webserver xampp html5boilerplate


    【解决方案1】:

    我认为您需要尝试 AMPPS。 AMPPS 是一个软件堆栈,可在桌面上启用 Apache、Mysql、MongoDB、PHP、Perl、Python 和自动安装程序。这包括网站开发所需的一切。您可以从开源 Web 应用程序开始开发您的网站,也可以自己开始编写代码。 AMPPS 允许您编写和测试 PHP、Perl 和 Python 应用程序。使用 AMPPS,您可以通过安装任何 288 应用程序、对其进行自定义、然后使用集成的 FTP 客户端将其发布到互联网上来创建网站。

    AMPPS 有一个控制中心,可以控制 Apache、MySQL、FTP、MongoDB 等服务器,并允许用户编辑相应服务器的配置文件,并在出现错误时检查日志文件... 网站:@ 987654321@

    【讨论】:

    • AMPPS 适用于 win 和 mac。我是 linux 用户 :) 还是谢谢。
    猜你喜欢
    • 1970-01-01
    • 2019-05-17
    • 1970-01-01
    • 1970-01-01
    • 2017-02-20
    • 2014-09-28
    • 2020-08-12
    • 2018-11-15
    • 2012-07-09
    相关资源
    最近更新 更多