Best Approach to Rewriting DotNetNuke URLs?

I would like to implement a rewrriter url for DotNetNuke. You have questions about whether this is a good or possible approach and any suggestions that other developers might have.

Can I add a dynamic or static route to rewrite a URL from the "Pages" → "Add Page" section?

Let's say I create a page called "Events" under the "Events" menu item.

Can I write some custom code in DotNetNuke that will add a prompt on the page add screen that suggests that I will need a static or dynamic route added for - site.com/Activities/Events, or if I call the Event Calendar page "', then this would suggest' site.com/Activities/Event-Calendar '?

I would love to receive any feedback or suggestions on how I accomplished this! Thanks.

+5
source share
5 answers

If you are using DotNetNuke 4.8 or higher, you just need to enable friendly human addresses through the website. Config

To enable friendly human URLs, replace:

<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" />

from:

<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="HumanFriendly" />

UPDATE: DNN 7.x :

<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="advanced" />

: URL DotNetNuke

+5

: , DNN. , , , , DNN.

DNN Url Rewriter. : DNN URL-, - , . , / Url Rewriting, URL- , Urls .

+2

Blaster, . , .

+1

- ... , , DNN (2016 ), , URL- DNN.

DNN 4.8 /, : PageBlaster DNN Masters URL- URL REWriter iFinity URL REWriter .

DNN 4.9 iFinity URL ReWriter ​​DNN, DNN 5, 6, 7 8 . web.config, .

You can make any settings that are not part of the main administrators either in the web.config file or in the database, or you can search for a DNN module, such as X3 DNN URL management, which fits into the database records integrated DNN- URL editor and helps to manage settings (it is very similar to the old screens / parameters of the iFinity interface), but you do not need it, you can work directly, it is just useful.

0
source

All Articles