FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


redirection





linexpert
hi
i read that you can use the following code to redirect all the subdomains to your main page
Code:
RewriteEngine On

RewriteCond %{HTTP_HOST} \.mysite\.com$ [NC]

RewriteRule ^(.*)$ http://mysite.com/$1 [R=301,L]


i tried that and it didn't work. Is there a similar way of doing the same thing from the directadmin panel?

thanks
niranvv
You can use DirectAdmin to Redirect persons!
Goto: DirectAdmin >> Advanced Features >> Site Reditrection



and enter the addres like: /someURL.html to redirect to www.SomeNewUrl.com




For more help, check here

Niran
mathiaus
Use this code, tried and tested Very Happy
Code:
RewriteRule ^(.*)/$ http://mysite.com/ [R=301,L]
linexpert
mathiaus, i tried that and it isn't working right. Do you mind if i send you my direct admin username and password to check out what i'm doing wrong.
Related topics
Problem with Subdomains
domain
Error 404 ..... How to Hide ...
why no hosting under .com
image
QUALITY WEB SITE HOSTING
Does someone offer .Com redirection for FRIH$?
REDIRECTION
URL Redirection - Javascript+HTML, so simple...
User Agent Redirection
Redirection code for deleted URL...
Redirection to URL
301 Redirection
redirection
301 redirection in PHP and .htaccess
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.