WP Network and FQDN redirect
-
Hi,
We’re running a WordPress Network as an intranet site(s). It’s on a RedHat box with the following VirtualHost;
<VirtualHost *:80> ServerName csi.our.company.uk ServerAlias csi csi.our.company.uk ServerAdmin [email protected] DocumentRoot /var/www/html/ ErrorLog logs/csi </VirtualHost>
Internally it’s accessed via https://csi/, here’s the .htaccess file;
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] # BEGIN WordPress RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] # END WordPress
We have two external sites connecting into our network via VPN and we’re unable to get it working. We have another Joomla site, which I have no experience with, and that works okay. What the Joomla site does is allow people to view the site through both https://joomla/ and https://joomla.our.company.uk/ without redirecting. WordPress however removes the FQDN and puts it on the local address which the external VPN sites can’t resolve.
Is there any way we can allow people to browse our WordPress network via both https://csi/ and https://csi.our.company.uk/ without it redirecting to the set site URL?
- The topic ‘WP Network and FQDN redirect’ is closed to new replies.