Web Services Blog

Web Services

Pretty URLs

By default, WordPress will auto-generate a URL based on your website’s domain, your page’s title, and any parents it might have. Let’s look at the URL for this page:

http://webservices.dixie.edu/web-resources/pretty-urls/

This part is determined by the site’s domain: webservices.dixie.edu/

The next section is the current page’s parent: web-resources/

The last part is the page’s title: pretty-urls/

But what happens when you have a page with a really long name? By default, you’ll end up with a really long url. Here’s an example of what could happen:

http://webservices.dixie.edu/web-resources/dixie.edu-style-guide/design/making-the-most-beautiful-page-you-can-think-of-and-stay-on-brand

That’s an awful URL, right? You can set a custom url by editing the “Permalink”, just above the main edit area in WordPress. Click “Edit” and you can set whatever name you like. If you have a page that’s important for users to get to quickly, such as a voting form, or an event schedule, you should set a custom, easy to remember URL. Make sure to leave the page parent set to “none” and edit the permalink/URL to something short; for example:

http://webservices.dixie.edu/events/annual-web-design-conference-2017

 

could be shortened to

http://webservices.dixie.edu/webcon2017