View Single Post
  #4  
Old 26th November 2010, 10:09
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default

Edit: Looks like this was DNS issue. Forget it...


My excursion with nginx has run in to a new difficulty.
So far we have redirected many sites that come with different domain names (.org .net .info etc.) to the main domain site by using ISPConfig's site/option page's handy apache form.

It seems though that if traffic is redirected to a nginx server this will stop working.

hmm... How to overcome the problem?

This is the type of code we have been using to do the redirecting...

Quote:
Options +FollowSymLinks
RewriteEngine on

RewriteCond %{HTTP_HOST} !^internet-palvelut.fi$ [NC]
RewriteRule ^(.*)$ http://www.internet-content.net/fi/$1 [L,R=301]

RewriteCond %{HTTP_HOST} !^www.internet-palvelut.fi$ [NC]
RewriteRule ^(.*)$ http://www.internet-content.net/fi/$1 [L,R=301]
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent


Last edited by SamTzu; 26th November 2010 at 11:14.
Reply With Quote