PDA

View Full Version : Subdomain redirect


consultacli
03-14-2011, 09:16 AM
Hello,

We have a hosted site with 2 sub-directories/application. Each directory has a different site language. In the root we have a script that redirects to the chosen language/subdirectory. We bought the unlimited sub-domain addon.
Now, the problem is that after redirection the site url ends up having the redirected sub-directory name at the end of the url. What can be done to avoid this?


Ex:
site: www.site.com
after redirection: www.site.com/subdirectory

Thanks in advance,
Nuno Lucas

Tasslehoff
03-14-2011, 10:15 AM
Hi Nuno,

You will need to use something like URL Rewrite to change the appearance of the URL. More information can be found in our blog post (http://blog.discountasp.net/url-rewrite-2-0-for-iis-7-is-here/).