2017-02-18 112 views
0

我安裝在根文件夾laravel框架,WordPress的CMS在博客文件夾安裝在博客文件夾+ laravel WordPress的根文件夾

Laravel效果很好,但WordPress的不工作

我將no-www重定向到www和http到laravel中的https .htaccess文件:

<IfModule mod_rewrite.c> 
<IfModule mod_negotiation.c> 
    Options -MultiViews 
</IfModule> 

RewriteEngine On 

#First rewrite any request to the wrong domain to use the correct one (here www.) 
RewriteCond %{HTTP_HOST} !^www\. 
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 

#Now, rewrite to HTTPS: 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 

# Redirect Trailing Slashes If Not A Folder... 
RewriteCond %{REQUEST_FILENAME} !-d 
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}] 

mysite的網址:https://www.zanborasal.com

WordPress博客文件夾:https://www.zanborasal.com/blog

你有什麼想法,我怎麼能糾正我Wordp =按安裝?

回答

1

剛過RewriteEngine On如果添加:

RewriteCond $1 !^(wordpress-folder) 

這將排除你的WordPress安裝,讓你有wordpress-folder內自己htaccess的設置。

相關問題