properly rewrite url configuration for wordpress blog inside larvavel project

On the web root I’ve all the folder of laravel and a folder blog containing a wordpress project.

folder structure

Read More

I would like to access to www.mywebsite.de/public/index.php url without specifying public/index.php.

To be more specific I’m using wordpress only as backoffice, so it would be ideal rewrite
www.mywebsite.de/wp-admin in www.mywebsite.it/blog/wp-admin/

Thanks in advance for help.

==============================

I deleted .htaccess file containing:

RewriteCond %{REQUEST_URI} !public
RewriteRule (.*) /public/index.php/$1 [L]

Because all assets folder/subfolder/files under public folder become unreachable.

-mywebsite.ext become mywebsite.ext/public/index.php OK

-mywebsite.ext/myroute become mywebsite.ext/public/index.php/myroute OK

-mywebsite.ext/images/funnyimage.jpg become mywebsite.ext/public/index.php/images/funnyimage.jpg NOT OK it should be mywebsite.ext/public/images/funnyimage.jpg

I cannot make an excetpion for each folder and subfolder to distinguish them from a route.

Related posts

Leave a Reply