English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

htaccess redirect - different IPs
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: htaccess redirect - different IPs
#8149
htaccess redirect - different IPs 12 Years, 7 Months ago Karma: 0
Dear all,

I finally managed to install the extension and it works as promised when I use aliasses on the same domain.

However, now I would like to use an "alias" on a different IP, but on the same server. I can accomplish this, and have used it in self made scripts before, by putting a htaccess file on this domain, lets call it myalias.be , that gets redirected to mymainsite.be

So in the .htaccess on the ftp from myalias.be, i have this:
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.mymainsite\.be
RewriteRule (.*) www.mymainsite.be/$1 [P]

Now, when I visit myalias.be, I just see the mymainsite.be website, without any installation instructions or anything. It's like joomla does not detect this as a slave site (even though I added it on mymainsite.be).

The reason it needs to be like this, is that I can't have a different IP when I use a plesk alias.

Thank you very much for any advice!

Kind regards,
Digits
digits
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#8156
Re: htaccess redirect - different IPs 12 Years, 7 Months ago Karma: 54
JMS read the URL present in the HTTP protocol and is not informed of any changes that you may do in .htaccess or anywhere else.

If you want to have different website displayed with aliases or different IPs, you can probably modify that with a vhost.conf that you put in your "config" directory.
You need root access in Plesk to add vhost.conf

See the Plesk help appendix II that explain how to have specific vhost.conf settings.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla