doujieyu7062 2019-02-26 14:29 采纳率: 0%
浏览 88

关于Xampp上的css Laravel-Voyager项目的404

I have been building a project that is based on Laravel with voyager and everything is fine if run on php artisan serve, but when I switch to XAMPP I have encountered an issue. Originally, I have issues on both routes and CSS and then I googled around and managed to fix the routes by modifying files, unfortunately the CSS is still failing, looking at /localhost:8080/ecr/vendor/tcg/voyager/assets/css/app.css its 404

Here are the the config of app

directory details:

xampp/
├── htdocs/
│   ├── MyProject/ (public folder)
│       ├── .htaccess
├── MyprojectCore/
│   ├── app/
|   ├── vendor/
│       ├── autoload.php
    ├── bootstrap/
        ├── app.php

index.php on public folder

require __DIR__.'/../../MyprojectCore/vendor/autoload.php';
$app = require_once __DIR__.'/../../MyprojectCore/bootstrap/app.php';

.htaccess on xampp/htdocs/MyprojectCore

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
    RewriteRule ^(.*) - [E=BASE:%1]

    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .? - [L]

    RewriteRule .? %{ENV:BASE}/index.php [L]
</IfModule>

httpd.conf on Apache config

<Directory />
    Options Indexes FollowSymLinks MultiViews
    Order allow,deny
    allow from all
    AllowOverride All
</Directory>

I also tried copying the bootstap app but it fails when I run it.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记