.htaccess

Seantf

New Member
Wij hebben in Direct admin een multidomain installatie van wordpress draaien om het beheer efficiënt te houden met maar 1 gebruikersnaam en wachtwoord voor meerdere blogs.
Dit werkt helemaal prima. Echter het probleem waar we nu tegen aanlopen is dat 2 domeinen voor het hele internet openbaar moeten zijn en de andere 8 alleen voor 1 specifiek ip adress.
In ons geval moet dus http://abc.nl & http://xyz.nl wereldwijd beschikbaar zijn maar al het overige alleen voor 23.234.123.23
nu hebben we het ea. geprobeerd met .htaccess files om dit voor elkaar te krijgen maar lopen we helemaal vast


RewriteCond %{REMOTE_HOST} !87\.213\.123\.23
RewriteCond %{HTTP_HOST} ^www\.abc\.nl$ [NC] => macht het aan abc.nl dan doorzetten naar correcte website
RewriteCond %{HTTP_HOST} ^.\abc.nl$ [NC] => matched het aan abc.nl dan doorzetten naar correcte website
RewriteCond %{HTTP_HOST} ^.xyz\.nl$ [NC] => matched het aan xyz.nl of aan www.xyz.nl dan doorzetten naar correcte blog
RewriteCond %{HTTP_HOST} ^www\.xyz\.nl$ [NC] => matched het aan xyz.nl of aan www.xyz.nl dan doorzetten naar correcte blog
RewriteRule ^(.*)$ http://CORRECT URL DOORZETTEN/$1 [R,L]

Elk ander geval doorzetten naar abc.nl van belang is dat alle query's wel goed mee worden gestuurd en dat de redericts dus niet van toepassing zijn op 1 specifiek ip adress waarvandaan gewerkte wordt.

Omdat we werken met een direct admin 1 maar 1 map tot onze beschikking hebben door de multi installatie is htaccess de enige oplossing.
We hebben ook bedacht om in meerdere user accounts op direct admin moesten zijn met dezelfde toegang tot de database; Echter dit heeft als nadeel dat de plugins multidomein breed geïnstalleerd zijn. Installeren we een nieuwe plugin zouden we dit bij meerdere gebruikers moeten doen in direct admin en dat gaat veel werk kosten door steeds de verschillende gebruikers synchroon te laten lopen op bestandsbasis.

uiteindelijk is het probleem dus:
1 direct admin user 1 database.
Meerdere weblogs op die user gekoppeld dmv domainpointers en opgesplitst in de vorm van wordpress multidomain installatie
Van deze weblogs moeten er 8 gelimiteerd bereikbaar zijn. en de andere 2 wereldweid.
hoe zouden jullie dit aanpakken?
 

Seantf

New Member
We have a direct admin multidomain installation of wordpress running to keep up with only one username and password for multiple blogs. Managing efficiently
This works totally fine. However, the problem we now face with 'is that two domains for the internet public should be and the other 8 only for one specific ip adress.
In our case, so http://abc.nl & http://xyz.nl available worldwide but all the rest only for 23.234.123.23
now we have the others. tried with. htaccess files to achieve this but we are completely stuck


RewriteCond% {REMOTE_HOST}! 87 \ .213 \ .123 \ .23
RewriteCond% {HTTP_HOST} ^ www \. Abc \. Com $ [NC] => the power to abc.nl then continue to correct website
RewriteCond% {HTTP_HOST} ^. \ Abc.nl $ [NC] => matched to the abc.nl then continue to correct website
RewriteCond% {HTTP_HOST} ^. Xyz \. Com $ [NC] => matched to the xyz.nl or www.xyz.nl then continue to correct blog
RewriteCond% {HTTP_HOST} ^ www \. Xyz \. Com $ [NC] => matched to the xyz.nl or www.xyz.nl then continue to correct blog
RewriteRule ^ (. *) $ Http://CORRECT URL BY PUTTING / $ 1 [R, L]

Any other case continue to abc.nl is important that all queries be sent along well and that the redericts not apply to one specific ip adress where is worked.

Because we work with a direct admin 1 but one folder at our disposal by the multi htaccess installation is the only solution.
We also had to be devised with the same access to the database directly in admin multiple user accounts; However, this has the disadvantage that the multidomain plugins are widely installed. We install we should do this in direct admin with multiple users and a new plugin that will cost a lot of work by becoming the different users to run on file basis. Synchronously

finally, the problem is:
First direct admin user 1 database.
Multiple weblogs that user connected via domainpointers and split in the form of multidomain wordpress installation
Of these eight must weblogs limited reach. and the other 2 worldwide.
how would you handle this?
 

Cromewell

Administrator
Staff member
It's ok, our member base is primary English so you're far more likely to get answers if you post in the language we can read :) I didn't want to use an online translator as they generally mess parts up.
 

NyxCharon

Active Member
So, in summary, you only want 2 websites accessible to the world, and the other 8 should only be accessible to a single IP address, correct? In addition to this, all of this has to be done with .htaccess files, as you are not allowed to directly edit the apache virtualhost files?

Is my summary correct? Missing any other conditions?
 
Top