Custom rule for friendly url in dnn - asp.net

I am struggling with friendly urls in dnn.
I have a profile page:
http://localhost/dnn/uProfile/tabid/95/userId/1/Default.aspx
which I want to be like:
http://localhost/dnn/uProfile/1/username.aspx
I have tried to add some rules to host > friendly url settings but I don't really understand how to achieve this, or I am trying impossible :) ?

Your best option for doing something like this is with URLMaster, www.ifinity.com.au

Related

How can I set up a custom domain or URL for my Google Form?

I am trying to create a Google Form for a project and I was wondering if it is possible to have a custom domain or URL for the form. I know that the default URL for a Google Form is something like forms.google.com/form/xyz, but I was hoping to have something like myproject.com/form instead. Is this possible, and if so, how can I set it up?
Any help or guidance on this would be greatly appreciated. Thank you!
Yes, it's possible to have a custom URL. Google provides a way of shortening the URL but it's still not in a readable format. But it seems like you are looking for a way to embed or integrate google forms into another domain with a custom URL. There are great solutions already available for it. I would recommend you to check out BetterCollected. They not only provide the possibility of adding a custom URL to your forms, but if you work in an organization, you can create custom workspaces. You can even have a custom domain if you intend to without any hassles.

URL images after migrating website to wordpress

I want to implement my static website to wordpress just for practice and learning this stuff.
My images not loading because my original url is like: src="/images/logo.png" and now in my local wordpress url looks like: http://localhost/images/logo.png but should be: http://localhost/wp-content/themes/mytheme/images/logo.png
Have you any idea for this case? I can do it with find and replace in sublime but I'm wonder it there is a better way to fix it.
Thank you for your response!
A simple find and replace in your text editor is probably the simplest solution in this case. If your images were added in the CMS itself then you could use SQL instead.
You can use a WordPress plugin like this:
https://wordpress.org/plugins/better-search-replace/

Wordpress: Pre-path mode for a multilanguage solution ("/en/", "/de/")

I need to have a pattern in the url on the whole website to control which language is shown. The pattern www.website.com/en/permalink should generate a variable like $lang="en".
I have tried different approaches like add_rewrite_rule, add_rewrite_endpointor adding rewrite rules via add_filter('rewrite_rules_array') and using preg_matchto generate the actual pattern from the $_SERVER['REQUEST_URI'].
I also had a look on plugins like qtranslate that does very well what i need but the sourcecode is too complex for me to understand.
After all, I dont understand how to do this in a good way, what is the best approach to achieve this?
The language pattern has to stay in the URL on the whole page, like in qtranslate, f.e. after clicking a menu-link the pattern has to be shown in the url again.
The solution has to be SEO-friendly.
If you aren't confident doing this, the quickest way is to get the WPML (wordpress multi-language) plug-in.

Qtranslate-xp (qtranslate-plus) url work with qtranslate-slug plugins

I am using one plugins https://wordpress.org/plugins/qtranslate-xp/ for my WordPress site. Now I want about us page URL in three language. Means I want unique slug for about us in each language like english, deutche, etc.
Does any one know how to do that? Also, I have come to know about qtranslate-slug plugins but that is not working with qtranslate-xp. so can you please let me know how to do this?
if I understand your problem, you can replace Qtranslate-XP with mqTranslate (upgrade on 2015-2-27) and you can use Qtraslate-slug.
Qtranslate-XP and mqTranslate use same tags.

wordpress plug-in development for dynamic url

I'm new to wordpress plug-in development.
I want to create one plug in. the functionality of plug-in is
# it will catch url like, www.example.com/custom_post_type/param1/parm2/parm3
param1,param2,param3 are parameters passed to custom_post_type.
# i need to catch these parameters and want to communicate to database accordingly i want to show page content.
i don't know whether i should use custom_post_type.(because i'll use self made tables to check for parameters)
please suggest me.
What you need is the Wordpress Rewrite API. You can get more information about this at the Wordpress Codex
Tutsplus has an great article about using the Rewrite API: The Rewrite API: The Basics
First, you have to validate if you can achieve efficiently what you want to do with Custom Post Type. You do not give enough details to be able to tell you if it would be better, in this particular case, to use CPT or build custom tables. That said, most of the time, you can use both: CPT mixed with custom tables.
As for your URL question, you need to play with the: Rewrite API. This will enable you to manage the URLs the way you want.
Unfortunately, the Codex may be hard to understand. Fortunately, you can check this great resource where Carl Alexander explains exactly how it works: WordPress for the Adventurous : Rewrite API.
Another possibility is to breakdown the URL by using the variable $_SERVER['REQUEST_URI']. That said, I would avoid this option if possible. Using the rewrite API is the proper way to go.

Resources