使用Laravel在文件夹博客中的同一域中安装Wordpress

问题描述:

我在同一个domain.com上安装了laravel.该站点已启动并正在运行.我需要在domain.com/blog的博客文件夹中安装wordpress.当我尝试安装wordpress时,不允许我运行安装并显示此网页具有重定向循环".我使用domain.com/blog/index.php安装了wordpress,但是安装后我无法从domain.com/blog/

I have a laravel installation at same domain.com. The site is up and running. I need to install a wordpress in blog folder at domain.com/blog. when I try to install the wordpress, it's not allowing me to run the installation and says "This webpage has a redirect loop" . I installed wordpress by using domain.com/blog/index.php, But after installation I was not able to run the wordpress blog from domain.com/blog/

我已经为wordpress博客文件夹提供了相关权限.我将从laravel部分的博客管理员和laravel网站管理wordpress.

I have provided relevant permissions to the wordpress blog folder.I will be managing wordpress from the blog admin and laravel site from laravel section.

我看过 https://laracasts.com/discuss /channels/general-discussion/install-wordpress-in-domaincomblog ,但无法使其正常工作.

I have seen https://laracasts.com/discuss/channels/general-discussion/install-wordpress-in-domaincomblog but could not make it work.

Mu的工作环境是:Ubuntu中的Xampp

Mu working environment is : Xampp in Ubuntu

任何建议都会有所帮助.

Any suggestions will be helpful.

我从laravel论坛获得了一个解决方案.将行添加到htaccess中对我来说很有效.

I got a solution from laravel forum. Adding the line in the htaccess worked for me.

RewriteCond $ 1!^(博客)

RewriteCond $1 !^(blog)

博客作为单独的文件夹可以正常工作.

Blog is working properly as a separate folder.