EDITS.WS

Tag: wordpress short urls

  • What is a Website URL (Important Parts Explained for Beginners)

    Recently one of our readers asked what is a website URL, and is it different from a domain name?

    A URL is simply the address of a website on the internet. It is made up of a domain name, along with some other elements such as subdomains or subdirectories. Whether your URL has these other parts will depend on the choices you make when installing WordPress.

    In this article, we’ll explain what is a website URL, describe the main parts that make up a URL, and show you how to choose and register a domain name for your website.

    What is a Website URL + 3 Important Parts (Explained for Beginners)

    What Is a Website URL?

    Every website is uniquely identified by a URL, or uniform resource locator. In simple terms, if you think of your WordPress website as a house, then the URL would be its address.

    Every post, page, image, product, and resource on your website also has a unique URL. These are formed by adding characters after the website URL.

    For example, the URL to a WordPress post looks like this:

    https://example.com/this-is-a-blog-post/
    

    There are three important parts of a URL. It starts with the protocol used to connect to the website, which will be HTTP or HTTPS. These days, you will mostly see HTTPS because it is more secure.

    After that comes the domain name that identifies the website itself, and then the path to a specific post or resource on your website.

    A URL may also contain other information, such as a subdomain or subdirectory, a query or other parameters, and an anchor to a specific part of a web page.

    With that being said, let’s take a closer look at the 3 main parts that make up a URL, along with some optional elements:

    1. The HTTP or HTTPS Protocol

    The first part of a URL is the protocol. This identifies the set of rules that will be used to transfer information between the server and the user’s browser. The protocol used for websites is HTTP or HTTPS.

    The protocol is followed by a colon and two forward slashes, like this:

    https://
    

    HTTP stands for ‘hypertext transfer protocol’. This protocol is a set of rules that allow the user’s web browser to communicate with your website.

    HTTPS stands for ‘hypertext transfer protocol secure’ and is used when the website is operating over a secure connection. This is especially important if you wish to collect payments on your website.

    Users don’t need to type the protocol when entering your website’s URL into their web browser. These characters will be added automatically.

    Should My Website Use a Secure HTTPS Connection?

    Every day we share our personal information with different websites whether it’s making a purchase or simply logging in. In order to protect the data transfer, a secure connection needs to be created. That’s where HTTPS comes in.

    HTTPS is an encryption method that secures the connection between users’ browsers and your server. This makes it harder for hackers to eavesdrop on the connection.

    A site secured by HTTPs

    If you want to accept payments online on your eCommerce website, then you need to use HTTPS. That’s because most payment companies like Stripe, PayPal Pro, and Authorize.net require a secure connection before accepting payments.

    But we encourage everyone to move their website from HTTP to HTTPS immediately, even if you don’t run an online store. That’s because Google ranks websites using HTTPS higher than those using HTTP.

    Also, Google displays a ‘Not Secure’ warning when you visit an HTTP website in Chrome. When your users see this notice, it gives them a bad impression of your business.

    Chrome Warns Users When the Connection Is Insecure

    How Can I Move My Website to a Secure HTTPS Connection?

    When you’re ready to set up a secure HTTPS connection for your website, you need to purchase an SSL certificate. SSL stands for ‘Secure Sockets Layer’ and is the standard technology for keeping an internet connection secure.

    You may already be paying for an SSL certificate with your web hosting since many of the best WordPress hosting companies offer them free for all their users. For more details, see our guide on how to get a free SSL certificate for your WordPress website.

    After you have enabled the SSL certificate on your domain name, you will need to set up WordPress to use SSL and HTTPS protocols on your website.

    We show you how to do that step-by-step in our beginner’s guide on how to properly move WordPress from HTTP to HTTPS.

    2. Your Website’s Domain Name

    The second important part of a website URL is the domain name. This is the address that internet users type in their web browsers to visit your website, like this:

    example.com
    

    The user’s web browser will automatically add the correct protocol.

    https://example.com
    

    You need to choose a domain name when you first create your website. You should make sure that it’s easy to remember and not already being used by another website.

    Once you’ve chosen your domain name, you will need to register it. This involves a small fee that you will need to pay to the domain registrar you choose.

    What Are the Different Parts of a Domain Name?

    A domain name is made up of two or three parts:

    1. The top-level domain (TLD) is the extension of your domain name such as .com, .org, .net. There are other TLDs, but they are less common and we don’t recommend them.
    2. The second-level domain (SLD) refers to the name that comes before the top-level domain or TLD. For example, for our website, ‘wpbeginner’ is the second-level domain and ‘.com’ is the top-level domain.
    3. Some websites also use a ‘country code top-level domain’ or ccTLD to target their local audience. These include .uk for the United Kingdom, .de for Germany, and .in for India.

    We always recommend using the .com domain extension because most users will remember your website’s name and assume that it ends in .com. You can learn more in our guide on whether you should choose a new domain extension for your website.

    What’s the Difference Between a Domain Name and Hosting?

    When you first create a website, you need both a domain name and web hosting. Many beginners are not sure what the difference is.

    We said that a domain name is like the address that helps visitors find your house. Well, hosting is like the house itself. It is the place where your website posts, pages, images, and other resources actually live.

    For a more detailed explanation, please take a look at our guide on the difference between a domain name and web hosting.

    How Can I Choose the Best Domain Name for My Website?

    Choosing the right domain name for your website is crucial for your success. Get it right the first time because changing it later is difficult and can hurt your brand and search rankings.

    Try to make it short and easy to remember. Ideally, it should be less than 15 characters. It should be easy to spell and pronounce, otherwise, users might make a mistake when typing it and will see an error message or be taken to the wrong website.

    If you are having trouble coming up with a good domain name, you might like to use a domain name generator. These free tools automatically search for your defined keywords to find hundreds of clever domain name ideas.

    Nameboy Domain Name Generator

    We recommend using Nameboy, which is one of the oldest and most popular domain name generator tools online.

    You can also use WPBeginner’s free Business Name Generator tool, or IsItWP’s domain generator to find more domain name ideas.

    For more tips and tools, see our guide on how to choose the best domain name.

    Where Should I Register My Domain Name?

    Once you choose a domain name, you will need to register it with a reputable domain registrar. These are companies accredited by ICANN (Internet Corporation for Assigned Names and Numbers) that allow you to purchase and register domain names.

    All domain name records are stored in a centralized database. For a domain name to be recognized, it needs to be added to that database with all related information about it.

    In our research, the best domain registrar is Domain.com if you’re just buying a domain name, or Bluehost if you’re looking to build a website because they give you a domain name for free.

    To learn what to watch out for and see other options, refer to our guide on how to choose the best domain name registrar.

    Can I Change My Website’s Domain Name?

    We mentioned earlier that it is difficult to change your website’s domain name, but it is not impossible. However, it needs to be done with care, or it will badly impact your SEO rankings.

    Even when done carefully, changing your site’s domain name will temporarily affect your search engine rankings since Google and other search engines will need to adjust to the changes. It will also temporarily affect your search traffic.

    The good news is that it is possible to dramatically minimize the impact and quickly regain your search traffic and rankings. You will need to notify Google and your users of the change and use an SEO plugin like All in One SEO to set up a full site redirect.

    You can learn how to do this step-by-step by following our guide on how to easily move WordPress to a new domain without losing SEO.

    3. The Path to a Specific Webpage

    Your domain name will take visitors straight to your website’s homepage. But what if they want to visit a certain post or page? This is done by adding the path to that page in the URL after the domain name, like this:

    https://example.com/this-is-a-blog-post
    

    In WordPress, these are called permalinks, and the part of the address that appears after the domain name is called the slug.

    Ideally, a permalink should be easy for both humans and search engines to understand. When done right, they will help your posts rank higher on search engine results pages.

    That means you should avoid permalinks like these:

    https://example.com/index.php?p=4556
    

    How Can I Create an SEO-Friendly URL Structure in WordPress?

    One of the benefits of using WordPress for your website is that it creates an SEO-friendly URL structure by default. This wasn’t always the case.

    WordPress permalinks now use the post name by default. This is the most SEO-friendly URL structure because it is readable by both humans and search engines, and contains keywords that explain the article.

    WordPress' permalink settings

    To learn more on this subject, see our guide on SEO-friendly URL structures in WordPress.

    Can I Create Custom Permalinks in WordPress?

    Some of our readers are interested in creating custom permalinks, so they have more control over the URLs used on their WordPress website.

    Aside from changing the main permalink structure, WordPress also offers ways to customize the individual URLs of posts, pages, categories, tags, and other areas of your website.

    You can also use WordPress plugins to create completely custom permalinks for specific sections of your website that override the default WordPress settings.

    You can learn how in our ultimate guide on how to create custom permalinks in WordPress.

    Should I Use a URL Shortener to Make Long Post URLs Easier to Share?

    Sharing your web content on social media can build user engagement and bring new users to your website. But pasting in long links or URLs isn’t always the best way.

    That’s why URL shortener services like Bitly and TinyURL were originally created. They take a long link and make it shorter so that it doesn’t take up as much space.

    Short URL used on social platforms

    You can learn how to do this on your own website by following our guide on how to create a short link in WordPress.

    On WPBeginner, we use a custom domain, wpbeg.in, for our short links, which is a bit more technical to set up and would require you to purchase another domain. We have a separate tutorial on how to create your own customized short URL.

    Optional Parts of a Website URL

    We’ve just taken a look at the 3 important parts that make up a website URL: the protocol, domain name, and permalink.

    However, there are also several optional parts that can be used in a web address. Let’s have a look at the main ones now, and why you might like to use them.

    Should You Include ‘www’ in Your Website URL?

    You may have noticed that many website URLs start with ‘www’, and wonder whether there is an SEO benefit when you include it.

    https://www.example.com
    

    The fact is, there are absolutely no SEO benefits of using ‘www’ or not using it. You can choose whichever you prefer.

    What is important is that you don’t change your mind after starting your website.

    You can learn more in our guide on www vs non-www, which is better for WordPress SEO?

    Why Do Some Businesses Install WordPress in a Subdomain or Subdirectory?

    Some businesses want to create several websites under the same domain name. One way to do this is by using a subdomain, which places a word before your domain name like this:

    https://myblog.example.com
    

    You can create as many subdomains as you like, or choose not to use them at all. For example, some businesses use different subdomains for their blog and online store, such as https://blog.example.com and https://store.example.com.

    Another way to create multiple websites on the same domain is to install WordPress in different subdirectories, like this.

    https://example.com/myblog
    

    The difference is that Google sees subdomains as separate websites and subdirectories as part of the same website. That means that search engines will rank your subdomains separately, while your SEO ranking will be shared between your domain and subdirectories.

    For bloggersstartups, or small businesses with limited time and resources, using subdirectories will help you rank your website faster than using a subdomain.

    You can learn more in our step-by-step guide on how to install WordPress in a subdirectory.

    Some users accidentally install WordPress in a subdirectory. This happens when they install WordPress manually and copy the actual ‘wordpress’ folder instead of its contents onto their website. Their website URL will look like this:

    https://example.com/wordpress/
    

    You can learn how to fix this error in our guide on how to get rid of /wordpress/ from your WordPress site URL.

    Can a URL Take Users Directly to a Section of a Post or Page?

    Finally, you can add some characters to the end of a URL to help users quickly jump to the section of a post they want to read. These are called ‘anchor links’, and are formed by adding a hash character and anchor after the permalink like this:

    https://example.com/this-is-a-blog-post#sectionofblogpost
    

    You can learn how and when to use anchor links in our guide on how to easily add anchor links in WordPress.

    We hope this tutorial helped you learn more about website URLs. You may also want to see our guide on how to keep your WordPress site secure, or our expert picks on the best social media plugins for WordPress.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post What is a Website URL (Important Parts Explained for Beginners) first appeared on WPBeginner.

  • How to Create Your Own Customized Short URL for Your Blog

    Do you want to create your own customized short URL for your blog?

    Customized short URLs are often branded short URLs that are easy to remember and share. We use wpbeg.in for our own branded custom short URLs.

    In this article, we’ll show you how to easily create your own customized short URLs for your blog.

    Creating customized short urls in WordPress

    Why Use a Branded Customized Short URL in WordPress?

    You may have noticed how popular websites like The New York Times, Twitter, Facebook, and TechCrunch use branded short URLs on social media.

    The New York times uses nyti.ms, TechCrunch uses tcrn.ch, and WPBeginner uses wpbeg.in domain name for shorter customized URLs.

    Short URL used on social platforms

    These branded domain names are called domain hacks.

    They are created by combining the brand name and a domain TLD to cleverly spell a brand name.

    Since most websites use .com as their primary domain, this is a good way to create a short url for your WordPress site. See our tips on picking the best domain for your blog.

    Using your own customized short URL improves brand recognition among your users. It also allows you to create shorter URLs for easy sharing on social platforms.

    Most importantly, you can easily track these URLs to see how many clicks you got when you shared a URL.

    Having said that, let’s see how to create your own branded customized short URLs in WordPress.

    Note: If you’re just looking to create memorable short URLs using your main domain, then we recommend using the Pretty Links plugin. This is what top podcasters and YouTubers use to mention short links in their videos.

    Step 1: Buy a Short URL or Short Domain Name

    Most of us do not have a short URL as our primary domain name. This means you will need to register a new domain name that is much shorter than your current domain.

    For example, when choosing a branded shorter domain for WPBeginner.com we registered WPBeg.in. This made our short URL 6 characters shorter than our primary domain.

    There are many free domain name generators that allow you to automatically generate domain name suggestions. See our list of 14 best free domain name generators.

    Domainr is the one that specializes in helping you find short domains using domain hacks.

    Using domain hack to generate short url

    Try different combinations and explore creative ways to spell your brand name.

    Once you have found a domain name that meets your needs and is available, you can register it on any of the top domain registrars.

    We recommend using Domain.com. They are the best domain registrar on the market and you can get a 25% discount using our Domain.com coupon code.

    The Domain.com website with search bar

    Other domain registrars that we recommend include Network Solutions and GoDaddy.

    The cost of domain name registration depends on which TLD you select. Country-specific TLDs cost a little more than some other new TLDs.

    Once you have registered your domain name, you will be able to manage it from your domain registrar’s control panel.

    Step 2: Setup Your Custom Domain in Bitly

    Bitly is a popular URL shortner service that allows you to manage and track links. We use it to shorten our WordPress URLs and manage them.

    First, you will need to create a Bitly account. You’ll need at least Basic plan to use your own custom domain name for link shortening.

    Sign up for a paid Bitly plan

    After completing the sign up, you’ll reach your Bitly account dashboard.

    From here, you need to click on Account settings » Custom domains menu and then click on the Add a domain button.

    Add custom domain to Bitly

    On the next screen, you’ll see options to buy a new domain name or use your own domain name.

    Go ahead, and click on the ‘I want to use my own domain name’ option to continue.

    Continue with your own custom domain

    Next, enter the domain name you recently purchased.

    Below that, select ‘No, this is an unused domain name’ option and click Next.

    Enter domain name

    Now you will see the option to choose a group.

    Bitly allows you to organize your links, domains, and users into groups. This allows you to limit certain domains to specific users.

    Choose All groups to make your custom domain available for all groups.

    Allow groups

    Next, you will be asked to add DNS records to your branded domain name before continuing.

    You can leave this window open and proceed to the next step.

    Finish adding domain

    Step 3: Set DNS A Record to Point to Bit.ly

    In order to create your own branded custom short URLs, you need to point your domain to Bitly servers.

    To do that, you will need to add DNS records to your custom domain name. DNS records are kind of instructions that point domain name to proper servers.

    You can find the DNS records that you need to add on Bitly website.

    Bitly DNS records

    There are two types of DNS records that you can add.

    For root domain names (e.g. wpbeg.in), you’ll need to enter A records.

    However, If your custom domain is a subdomain (e.g. on.wsj.com), then you’ll need to enter the CNAME records.

    To add the records, simply visit the domain management area on your domain registrar’s website and look for DNS records.

    If you took our advice and registered your domain with Domain.com, then you will find the DNS & Nameservers settings under the left column.

    DNS records

    Switch to the DNS Records tab and then click on the Add DNS Record button.

    This will bring up a popup where you need to enter the following information

    • Hostname under the Name field
    • Choose A as the Type
    • Copy and paste the Bitly IP address
    • Choose 1 hour under the TTL
    Setting up A records

    Click on the Add DNS button to save your settings.

    If you are using a subdomain for example on.wsj.com, then you need to set a CNAME record and point it to cname.bitly.com

    After adding DNS records you can switch back to Bitly website and click on the Add Domain button.

    Finish adding domain

    Now, you will see a notification that your domain settings are being verified.

    Bitly will check your domain for DNS records and if everything looks ok you’ll recieve an email notification.

    Domain verification

    Step 4: Set up Short URL on Your WordPress Site

    The best part about using Bitly is that you can easily manage, share, and track your short URLs directly from your WordPress site.

    First, thing you need to do is install and activate the Bitly’s WordPress Plugin. For more details, see our step by step guide on how to install a WordPress plugin.

    Upon activation, you need to visit Settings » Writing page and scroll down to the ‘WP Bitly Shortlinks’ section.

    Connect Bitly to WordPress

    Simply click on the Authorize button and then Allow Bitly to connect your WordPress site.

    Once connected, you can choose which post types you want to generate shortlinks for. Below that, you can choose the default domain that you added earlier.

    Choose default domain

    Don’t forget to click on the Save changes button to store your settings,

    The plugin will now start generating your custom branded short URLs. You can see them by visiting your Bitly dashboard.

    WP-Bitly plugin will also show you BitLy stats for each post. You can see those stats by editing a post and look for WP Bitly metabox.

    Bitly stats inside WordPress post editor

    This will allow you to track how many times your short URL for this post has been clicked and from which websites.

    We hope this article helped you learn how to create your own customized short URLs in WordPress. You may also want to see our complete WordPress conversion tracking guide or see our pick of the best social media plugins for WordPress.

    If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

    The post How to Create Your Own Customized Short URL for Your Blog first appeared on WPBeginner.