I’ve moved a wordpress set up to a subdirectory, from var/www/html
to var/www/html/wp-blog
primarily to make it future proof. I’ve adopted the directions within the codex. My server is configured as such
- I’ve a nginx reverse proxy which directs calls to
weblog.mysite.com
to the port 8080. - Apache listens on 8080
- I’ve modified the
.htaccess
from what’s given within the codex and it’s as follows
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^weblog.mysite.com$
RewriteCond %{REQUEST_URI} !^/wp-blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wp-blog/$1
RewriteCond %{HTTP_HOST} ^weblog.mysite.com$
RewriteRule ^(/)?$ wp-blog/index.php [L]
</IfModule>
I’ve solely modified the ^(www.)?
check to weblog
since I do not need www
. Additionally though the wordpress occasion is in a subfolder I want to server it by way of weblog.mysite.com
and the admin at weblog.mysite.com/wp-admin
.
Now my bother is that after I use the the url weblog.mysite.com/wp-admin
it takes me a the login web page however I get caught in a loop after that. I observed that my url within the tackle bar has a redirect_to
set at weblog.mysite.com/wp-blog/wp-admin
. If I take away wp-blog
from the redirect url, I’m able to login.
The bizarre half is that, if the session will get over whereas I’m within the admin web page, the redirect url is ok!
At this level I’ve modified the WordPress URL
within the Common Settings to weblog.mysite.com/wp-blog
and all the things works so far as I see. However as I stated earlier than I want to use the admin panel on the foundation.