WordPress installed in Laravel public directory, trouble with urls
-
Hello,
I’ve added a WordPress blog page to my previously working website. I did it by instaling WordPress in a directory named “blog” inside my “/public” laravel directory. So I could access the blog by going to “patrikzk.eu/blog” and have my old website functioning normally elsewhere. I’ve set the site address in general settings to “https://patrikzk.eu/blog” instead of “https://patrikzk.eu/public/blog”.Everything works without problems except when the homepage is set to show recent posts instead of a static page, WordPress shows two different things depending on whether there is a slash or not – “patrikzk.eu/blog/” shows correct homepage with recent posts, but “patrikzk.eu/blog” (without a slash at the end) shows a random page from pages that I have in WordPress, but not recent posts.
I tried to reroute using laravel from “/blog” to “/blog/” or “/public/blog/”, but it doesn’t seem to have any effect.
- This topic was modified 5 years, 6 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘WordPress installed in Laravel public directory, trouble with urls’ is closed to new replies.