To do this you would only need to create a portal rule that replaces the virtual folder in the output of your pages: SearchFor: www.website.com/dnn ReplaceWith: www.website.com If the domain name part is not actually in the output of the page then you may need a rule like this instead: SearchFor: (src|href)="/dnn/ RepaceWith: $1="/ For the ref= problem you can't keep other people from linking to your site that way.
You can make it a 301 redirect once they get to your site by doing a rule like this: SearchFor:
</head> Replace - RespondWith:
[PB: IF( Match("[PB:Request.Url]","ref=") ) {
[PB: Response.Status("301 Moved Permanently") ]
[PB: Response.AddHeader("Location","http://www.snapsis.com") ]
[PB: Response.End() ]
}
else
{
</head>
} ]
|