Quick Nav:  Online Store   |   Login | Register

Remove Virtual Foldername from links

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
green flash
<50 Posts
Posts:45


02/23/2008 1:47 AM  
John, how should i configure in the manner of following scenario;
Lets say a client has his website installed on a virtual directory called dnn (url is: http://website.com/dnn)
He wants to move his website to root path. so url will become http://website.com
However he also wants to redirect all links to new version without dnn path.

I mean lets say: if user tries to browse http://www.website.com/dnn/Home.aspx then he should see http://www.website.com/Home.aspx

Can you show via images how to configure pageblaster for this?

Also can you help me to get rid of ref?=domain.com in google search results? (Please search "site: www.vidyosfer.com ref" in google)

Thanks ;)

DotNetNuke Türkçe
John Mitchell
Posts:3084


02/23/2008 8:34 AM  

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>
} ]

green flash
<50 Posts
Posts:45


02/24/2008 9:03 AM  
@ John, thanks it was what i want ;) Redirect working perfectly. Now this should help anyone has duplicate search results on google with ref link.

Would you also recommend blocking ref?=domain.com with robots.txt?

DotNetNuke Türkçe
John Mitchell
Posts:3084


02/24/2008 9:12 AM  
I guess you could block it in robots.txt with: ref=*
But you may end up blocking something you don't want blocked, and if you do it with just a redirect you will still get credit for the link to your site's home page (or whatever page you redirect it to).
green flash
<50 Posts
Posts:45


02/24/2008 9:20 AM  
I think some of crap p*rn affiliate websites using this ref method as a kind of spam.

DotNetNuke Türkçe
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Remove Virtual Foldername from links



ActiveForums 3.7
Powered by: Snapsis Software