因为字preSS图像不可见“此网页有重定向循环”错误 [英] Wordpress images not visible because of “This webpage has a redirect loop” error

查看:162
本文介绍了因为字preSS图像不可见“此网页有重定向循环”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Magento的根文件夹博客目录下的字preSS。该博客目录是从直播现场我的应用程序复制。 (我用鱼猪Magento的扩展字preSS集成在Magento)

I have word press in my magento's root folder under blog directory. This blog directory was copied from a live site to my application. (I am using fish pig magento extension for the word press integration in Magento)

/var/www/
      app
      blog

在Magento管理我已经设置的使用服务器网址重写的到

In magento admin I have set Use Web Server Rewrites to NO

我有以下路径的前端

http://www.example.com/blog/wp-content/uploads/2014/05/blogimage-150x150.png

这形象存在于指定位置。文件权限 777 的目录和files.But的形象是不是在前端的博客网页可见。

This image exists at the specified location. File permissions are 777 for the directories and files.But the image is not visible in front end blog pages.

当我手动在我的Chrome浏览器中输入图片URL我得到的 此网页有重定向循环 的错误。在其中。

When I manually enter this image url in my Chrome browser I am getting This webpage has a redirect loop error. in it.

的.htaccess 文件,该文件是在博客文件夹只具有此行的DirectoryIndex的index.php

.htaccess file which is under blog folder is having only this line DirectoryIndex index.php

我也曾尝试这些命令

UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');

应用程序托管在nginx的

The application is hosted on nginx

更新

如果我把一个形象的 HTTP://www.example .COM /博客/可湿性粉剂内容/ sample.jpg 的位置,我无法访问此也。

If I place an image at http://www.example.com/blog/wp-content/sample.jpg location , I am unable to access this also.

我怎样才能解决这个重定向循环,没有任何一个谁可以帮忙吗?

How can I fix this redirect loop, is there any one who can help?

推荐答案

这个问题已经得到解决。我读了fishpig的文档。它被安装指导下提到那里。 如果你希望你的博客是可见的 http://www.yourmagento.com/blog 不要在一个子目录命名的博客安装Word preSS。出于这个原因,建议您在名为的子目录安装Word preSS WP

This problem is fixed now. I read the documentation of the fishpig. It is mentioned there under the installation guide. If you want your blog to be viewable on http://www.yourmagento.com/blog, do not install WordPress in a sub-directory named blog. For this reason it is recommended that you install WordPress in a sub-directory named wp

在我的情况的话preSS目录的名称和博客网址两者都是相同的IE浏览器。博客。当我改变了从博客字preSS目录名博客和更改管理员的fishpig集成在相同的设置。每一件事情开始工作的罚款。

In my case the name of the wordpress directory and the blog url both were same ie. blog. When I changed the directory name of wordpress from blog to blogs and changed the same setting under the admin for fishpig integration. Every thing started working fine.

修正

如果你的文字preSS有网址www.example.com/blog,那么目录结构应该像下面

If your wordpress have url as www.example.com/blog , then directory structure should be like following

/var/www/
      app
      blogs (or something other than blog)

这篇关于因为字preSS图像不可见“此网页有重定向循环”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆