2015-04-22 72 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文件」