Last active
August 24, 2023 19:42
-
-
Save decodedmrq/7fbb4668c0e6e21c7e5412b4fa97fa97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Apache | |
- Edit public/.htaccess of laravel application with wordpress in subfolder | |
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Redirect Trailing Slashes If Not A Folder... | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} (.+)/$ | |
RewriteRule ^ %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}] | |
# Wordpress | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule "^(.*)$" "wordpress/$1" [L] | |
# End wordpress | |
</IfModule> | |
- Symbol Link wordpress from Laravel_App/public/wordpress to Laravel_App/wordpress | |
- Access to 127.0.0.1:8000/wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
server {
}