Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help with Friendly URLs /URL Rewriting requiredHelp with Friendly URLs /URL Rewriting required
Previous
 
Next
New Post
7/24/2014 7:25 AM
 

Hi,

I've just migrated two sites from 4.90 to 7.3.1, All ok. For some reason the sites were previously installed in a folder '/portal' and the site root set as / - hence all page URLs and internal links included '/portal'. The migrated sites are set up so that the site root is the main dnn directory so no '/portal' in the URLs anymore. Great. However, the hard coded internal links still include /portal and so do the URLs index in google.

I'm trying to add a rule to the Friendly URL Settings that will match '/portal/' and replace it with '/'. However my attempts are failing, I've tried:

Match .*/portal/  -> Replace ~/

Match ^Portal/(.*)$ -> Replace ~/$1

So my questions are:

1 Can FriendlyURL rules be used to redirect internal links and indexed links? - or do I need to use something  like ISAPI_Rewrite?

2 If Friendly URL rules can be used, can anyone suggest the rule that I would need to use?

 

Thanks

 
New Post
7/24/2014 1:07 PM
 

The Friendly url rules can do that :

Match : .*/portal/(.*) -> Replace : ~/$1

This is a rewrite rule. 

The result of the replace have return a internal url (Default.aspx?TabId=.....)

This work if your old urls are /portals/Default.aspx?tabid=...

If your old urls are /portals/page/tabid/...../default.aspx

You can use 

Match : .*/portal/.*/TabId/(\d+)(.*) -> Replace : ~/Default.aspx?TabId=$1

Know also that the new and the old url return the same content (bad for seo)

Other solution is  a redirect with the friendly rules :

Match : .*/portal/(.*) -> Replace : http://www.mysite.com/$1

You can also use IIS rewrite module (free with iis) which is more flexible.

http://www.iis.net/downloads/microsoft/url-rewrite


 
New Post
7/25/2014 2:43 PM
 
Hi Sacha, many thanks for your reply.. I'll try out your suggestions and let you know how it goes.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help with Friendly URLs /URL Rewriting requiredHelp with Friendly URLs /URL Rewriting required


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out