View Single Post
Old 04-05-2008, 03:31 AM   #2 (permalink)
dxlwebs
Junior Member
 
dxlwebs's Avatar
 
Join Date: Mar 2008
Posts: 90
Default Re: .htaccess redirection

problem solved instead of using htaccess i used Visual Basics

Code:
<%@Language=VBScript%> <% SiteNameURL = Request.ServerVariables("SERVER_NAME") Select Case SiteNameURL Case "yourdomain.com" Response.Redirect "page1.asp" Case "www.yourdomain.com" Response.Redirect "page1.asp" Case "yourotherdomain.com" Response.Redirect "page2.asp" Case "www.yourotherdomain.com" Response.Redirect "page2.asp" Case "subdomain1.yourdomain.com" Response.Redirect "page3.asp" Case "subdomain2.yourdomain.com" Response.Redirect "page4.asp" Case Else 'redirecting everything other than cases selected above Response.Redirect "other.asp" End Select %>
works like a dream but if you know how to sort out the htaccess that would be great for other poeple as well!

to use this script put it in a asp format and then edit to your needs very simple
__________________
DxLwebs - Design Is Everything!
GMX The Games Forum
Mamma Klubi - Parents Zone
dxlwebs is offline   Reply With Quote
Sponsored Links