2015-04-22 71 views
1

这是我的问题,laravel &的WordPress: 可以laravel和wordpress一起玩吗?

 
    i need to put a blog inside laravel installation. 
    i want to use WordPress but i can't figure it out. 
    i put the WP files inside public/blog/ but i can't install it. 
    the redirect is the error part. 
    i need to say that to Apache: 

if($url = public/blog/*){ 
    ignore normal laravel routing system & redirect to WordPress inside (public/blog/*) 
    } 
+0

正确的做法是用的nginx/Apache来处理这个问题。 –

+1

检查http://stackoverflow.com/questions/27317031/install-wordpress-with-laravel-in-same-domain-in-folder-blog – Kaloyan

回答

1

为了让您的laravel的.htaccess干净,只复制使用干净的网址,任何活动的wordpress项目的.htaccess(或看在WordPress DOC)和复制它在公共/集团中的干净的wordpress文件夹(它几乎与laravel相同)。

没有在您的博客文件夹中的.htaccess中的laravel“公共/的.htaccess”重定向所有不特定的和现有文件的URL为“公共/ index.php文件”