Skip to content
Advertisement

How to integrate laravel8 project inside wordpress project cpanel?

I’ve wordpress project in (html_public) folder, and my domain run project fine, I want integrate laravel8 project inside the wordpress, so that both run in the same domain like That:

WordPress URLs:

  • https://example.com/wordpressHomepage

  • https://example.com/AnotherwordpressPage

Laravel URLs:

  • https://example.com/public/LaravelPage

  • https://example.com/public/LaravelPage/Id

WordPress && LaravelApp path in cpanel:

JavaScript

WordPress .haccess:

JavaScript

Laravel .haccess in /public:

JavaScript

wordpress index.php:

JavaScript

Laravel index.php in App/public/index.php:

JavaScript

please any help?

Advertisement

Answer

Create one folder in the root directory and dump your laravel project folder in that and create .htaccess inside laravel project folder then point that .htaccess to the laravel public directory index file. your project will run smoothly. But my suggestion is to go with VPS hosting which will have you root access.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement