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

   IT问题网   2019-10-21 00:00:00

问 题

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

/无功/网络/
应用程序
博客
 

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

我有以下路径的前端

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

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

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

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

我也曾尝试这些命令

 更新wp_posts set guid =替换(guid,"http://www.oldurl','http://www.newurl');

更新wp_posts set post_content =替换(post_content,"http://www.oldurl","http://www.newurl');

update wp_postmeta set meta_value =替换(meta_value,"http://www.oldurl','http://www.newurl');
 

应用程序托管在nginx的

更新

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

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

解决方案

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

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

修正

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

/无功/网络/
应用程序
博客(或东西比博客等)
 

标签:因为由于图像图象不可网页定向循环错误过错



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

在国防部重写的.htaccess链接转换(Link conversion in mod rewrite .htaccess)

problem i am trying to change my long url to something sh ...

htaccess的重定向规则的子域(.htaccess redirect rule for subdomains)

problem my site has a lot of subdomains(3rd and 4th level ...

重写子域通过htaccess的当地环境(Rewriting subdomain for local environment via htaccess)

problem i need to rewrite subdomain for local environment ...

重写指数当PHP aready删除(Rewrite index when php is aready removed)

problem i have a code in my htaccess that removes the .ph ...

index.php文件仍然需要,即使的.htaccess后(index.php still needed, even after .htaccess)

problem so i have a server running on digital ...

使用重定向VS重写规则的速度影响(Speed implications of using Redirect vs RewriteRule)

problem i'm curious to know if there is any difference in ...

PHP重定向VS htaccess的,这是更好?(php redirect vs htaccess which is better)

problem i want visitors to my site who visit ...

如何重写主域名的子文件夹,而无需更改网址是什么?(how to rewrite main domain to sub folder without changing url)

problem i want to rewrite sub folder such as ...

htaccess的重定向。html的非html的不工作(.htaccess redirect .html to non .html not working)

problem using this in my .htaccess: rewritecond %{the_re ...

重定向整个网站到HTTPS - 非www到www除了子域(Redirect entire website to https - non-www to www except subdomains)

problem i need to setup my .htaccess to perfo ...

用A记录指向一个域时创建一个例外(Shopify)(Creating an exception when pointing a domain using A record (Shopify))

problem i am setting up a shopify site using ...

我怎么可能prevent搜索引擎从我的网站上抓取一个子域?(How may i prevent search engines from crawling a subdomain on my website)

problem i have cpanel installed on my website ...

需要一个web.config文件,而不是对的.htaccess codeigniter(Need a web.config file instead of .htaccess for codeigniter)

problem i still not able to get the web.config file worki ...

重写规则Apache指令在.htaccess不工作(RewriteRule Apache Directives in .htaccess not working)

problem my .htaccess file for my php wordpres ...

.htaccess文件无法正常工作在Ubuntu 14.04使用的Apache2(.htaccess file not working on Ubuntu 14.04 with apache2)

problem my .htaccess file doesn't work on my ubuntu 14.04 ...

URL重写是消除斜线,一般无视我的规则(Apache mod_rewrite is removing slashes and generally ignoring my rules)

problem i'm at my wit's end, stack overflowers. trying to ...

哪种方法更安全/适合使用的.htaccess阻止访问到一个子目录?(Which method is more secure/suitable for blocking access to a subdirectory using .htaccess)

problem i'm trying to use .htaccess to block external acc ...

Magento的网站显示"未发现"在单击迁移服务器后页面链接(Magento site showing "not found" on clicking page link after migration the server)

problem i have migrate my site from one serve ...

htaccess的子域沉默重定向(htaccess subdomain silent redirect)

problem i have subdomains for each user, user1.domain.com ...

字preSS在base.example.com和可从example.com给我路径问题HostGator的(WordPress in base.example.com and accessible from example.com give me path issue in Hostgator)

problem i have a wordpress installation at subdomain. i w ...