Install Wordpress with Laravel in same domain in folder blog

后端 未结 3 521
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 13:43

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 word

3条回答
  •  梦毁少年i
    2021-01-06 14:25

    this line in .htaccess is probably your culprit:

    RewriteRule .*/$ /$1 [L,R=301]
    

    comment it out and see it that solves your problem.

    This line forces everything in the public domain to go through laravel's router. You could probably leave it by writing another regex above that line looking specifically for the /blog directory, or rewrite that line to route anything that != your blog directory.

    You should really leave that line there if possible.

提交回复
热议问题