Mein Projekt Wordpress und Laravel
Wordpress URL http://localhost/aaa
Laravel Projekt URL http://localhost/aaa/bbbLaravel falsche URL umleiten
Wenn ich von http://localhost/aaa/bbb/ funktioniert Zugriff auf Laravel hat.
Aber ohne/am Ende wie http://localhost/aaa/bbb Er leitet mich auf http://localhost/bbb
Dies wird .htaccess in Wordpress
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^/?bbb/.*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{REQUEST_URI} ^/?bbb/?$
RewriteRule . /bbb/public/index.php [L]
Dies ist .htaccess in Laravel Projekt
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /public/$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
Datei
Irgendeine Idee?