duanjing4667 2018-09-16 00:31
浏览 27

移动到MAMP后,使用Fishpig进行Magento和WP-Admin以及图像404

I just started working on a site that uses fishpig with magento 2 for pages and blog posts. When I moved the site locally, the wp-admin and images in WordPress 404.

On the production site you can see images are saved as, and can be viewed at mysite.com/wp/wp-content/uploads/2018/8/image.jpg. Also, the admin is accessed at mysite.com/wp/wp-admin/.

The site has Wordpress in the /pub/wp directory. The blog, pages and posts all work from the root (mysite.com/) with magento but the admin and images don't...

If I add /pub/ to the URL I can access wp-admin page or any image. I update the wp_options table to use my use my local url. So, the database settings match what was in production, but with my local dev url (obviously, I am missing something).

How can I get the wp-admin and images to work from the root /wp/... opposed to having to add /pub/wp...?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大