HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Multi domain alias (http://www.howtoforge.com/forums/showthread.php?t=61018)

Saikku 19th March 2013 12:48

Multi domain alias
 
Hello,

I have a problem about setting up an alias in ISPConfig (3.0.3.3)

I have a main website, 24market.fr, which is only the root installation of my cms.
Then I have a bunch of alias on it, such as iphone-stickers.com, skin-stickers.com, etc. I define the alias on nginx and the cms catches the urls and deliver a different view for each on them.
What I am trying to create an alias from a former website of mine, playstation-stickers.com, to a category in skin-stickers.com (so a full url, with a path etc.).

I tried several options in isp to do my redirect, but with no success, it only redirects me to my main store. Does anyone have an idea about how to do?

By advance, thank you.

almere 19th March 2013 12:55

Quote:

Originally Posted by Saikku (Post 294243)
Hello,

I have a problem about setting up an alias in ISPConfig (3.0.3.3)

I have a main website, 24market.fr, which is only the root installation of my cms.
Then I have a bunch of alias on it, such as iphone-stickers.com, skin-stickers.com, etc. I define the alias on nginx and the cms catches the urls and deliver a different view for each on them.
What I am trying to create an alias from a former website of mine, playstation-stickers.com, to a category in skin-stickers.com (so a full url, with a path etc.).

I tried several options in isp to do my redirect, but with no success, it only redirects me to my main store. Does anyone have an idea about how to do?

By advance, thank you.

Something like this?
Code:

if ($http_host = "yourolddomain.com") {
        rewrite ^ http://yournewdomain.com/somecategory/ permanent;
}


Saikku 26th March 2013 17:59

Thank you I will try it


All times are GMT +2. The time now is 19:48.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.