{"id":803,"date":"2012-05-26T18:00:10","date_gmt":"2012-05-27T01:00:10","guid":{"rendered":"http:\/\/virendrachandak.wordpress.com\/?p=803"},"modified":"2012-06-30T18:00:46","modified_gmt":"2012-07-01T01:00:46","slug":"parts-of-url","status":"publish","type":"post","link":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/","title":{"rendered":"Parts of URL"},"content":{"rendered":"<p>We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the URL.<\/p>\n<p>An URL may consists of as many as 6 parts. The different parts of the URL are:<\/p>\n<blockquote><p>scheme:\/\/domain:port\/path?query_string#fragment_id<\/p><\/blockquote>\n<p>Some people refer to the parts as:<\/p>\n<blockquote><p>protocol:\/\/hostname:port\/pathname?search#hash<\/p><\/blockquote>\n<p><!--more--><\/p>\n<p>Just to easily remember the different parts, I normally refer the URL as<\/p>\n<blockquote><p>protocol:\/\/domain:port\/path?query_string#hash<\/p><\/blockquote>\n<p>Now lets see what each part means.<\/p>\n<table>\n<tbody>\n<tr>\n<th>Part<\/th>\n<th>Meaning<\/th>\n<th>Required<\/th>\n<\/tr>\n<tr>\n<td>scheme or protocol<\/td>\n<td>Internet protocol to be followed. e.g. http, https, ftp, mailto, etc. This defines the syntax of the URL.<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>domain or hostname<\/td>\n<td>This is the destination location for the URL. It can be a hostname or ipaddress.<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>port<\/td>\n<td>The port to be used to connect to the location.<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>path or pathname<\/td>\n<td>This is&nbsp;typically a file or location on the web server.<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>query_string or search<\/td>\n<td>This is the data to be passed to software running on the server.<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>fragment_id or hash<\/td>\n<td>This specifies a part or a position within the overall resource or document<\/td>\n<td>No<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Lets see a few example URLs to understand what are the different paths of the URL.<\/p>\n<p>\n<span style=\"text-decoration:underline;\">Example 1:<\/span><br \/>\nhttp:\/\/www.example.com\/<br \/>\nThis URL consists of only 2 parts. They are:<\/p>\n<table>\n<tbody>\n<tr>\n<td>protocol<\/td>\n<td>http<\/td>\n<\/tr>\n<tr>\n<td>domain<\/td>\n<td>www.example.com<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n<span style=\"text-decoration:underline;\">Example 2:<\/span><br \/>\nhttp:\/\/www.example.com:80\/example.php?x=1&#038;y=2#results<br \/>\nIn this URL the different parts are:<\/p>\n<table>\n<tbody>\n<tr>\n<td>protocol<\/td>\n<td>http<\/td>\n<\/tr>\n<tr>\n<td>domain<\/td>\n<td>www.example.com<\/td>\n<\/tr>\n<tr>\n<td>port<\/td>\n<td>80<\/td>\n<\/tr>\n<tr>\n<td>path<\/td>\n<td>example.php<\/td>\n<\/tr>\n<tr>\n<td>query_string<\/td>\n<td>?x=1&amp;y=2<\/td>\n<\/tr>\n<tr>\n<td>hash<\/td>\n<td>#results<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n<span style=\"text-decoration:underline;\">Example 3:<\/span><br \/>\nhttp:\/\/www.example.co.in:80\/example.php?x=1&#038;y=2#results<br \/>\nIn this URL the different parts are:<\/p>\n<table>\n<tbody>\n<tr>\n<td>protocol<\/td>\n<td>http<\/td>\n<\/tr>\n<tr>\n<td>domain<\/td>\n<td>www.example.co.in<\/td>\n<\/tr>\n<tr>\n<td>port<\/td>\n<td>80<\/td>\n<\/tr>\n<tr>\n<td>path<\/td>\n<td>example.php<\/td>\n<\/tr>\n<tr>\n<td>query_string<\/td>\n<td>?x=1&amp;y=2<\/td>\n<\/tr>\n<tr>\n<td>hash<\/td>\n<td>#results<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Lets analyse the example 3 in more detail<br \/>\nThe URL is http:\/\/www.example.co.in:80\/example.php?x=1&amp;y=2#results<\/p>\n<p>In this URL we will breakdown the URL further<\/p>\n<ul>\n<li>The protocol is http<\/li>\n<li>The domain is www.example.co.in<\/li>\n<li>The subdomain is www<\/li>\n<li>The top-level domain or TLD id in. The in domain is also referred to as a country-code top-level domain or ccTLD. For example.com, the TLD would be com.<\/li>\n<li>The port is 80<\/li>\n<li>The path is \/example.php<\/li>\n<li>The query string is ?x=1&amp;y=2#results. This query string can be further divided into parameter. URLs can have lots parameters. Parameters start with a question mark (?) and are separated with an ampersand (&amp;). First parameter is x with value 1.<\/li>\n<li>The hash is #results<\/li>\n<\/ul>\n<div style=\"padding-top: 30px;\">\n<p><strong>Related Articles<\/strong>:<\/p>\n<ul>\n<li><a title=\"Uniform Resource Locators (URL)\" href=\"http:\/\/www.w3.org\/Addressing\/URL\/url-spec.txt\" rel=\"external nofollow\" target=\"_blank\">Uniform Resource Locators (URL)<\/a><\/li>\n<li><a title=\"Talk like a Googler: parts of a url\" href=\"http:\/\/www.mattcutts.com\/blog\/seo-glossary-url-definitions\/\" rel=\"external nofollow\" target=\"_blank\">Talk like a Googler: parts of a url<\/a><\/li>\n<li><a title=\"Wikipedia - Uniform resource locator\" href=\"http:\/\/en.wikipedia.org\/wiki\/Uniform_Resource_Locator\" rel=\"external nofollow\" target=\"_blank\">Wikipedia &#8211; Uniform resource locator<\/a><\/li>\n<li><a title=\"What is a URL?\" href=\"http:\/\/websearch.about.com\/od\/dailywebsearchtips\/qt\/dnt0526.htm\" rel=\"external nofollow\" target=\"_blank\">What is a URL?<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the URL. An URL may consists of as many as 6 parts. The different parts of the URL are: scheme:\/\/domain:port\/path?query_string#fragment_id Some people refer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,8],"tags":[50,69,70,71],"class_list":["post-803","post","type-post","status-publish","format-standard","hentry","category-glossarydefinitions","category-web-development","tag-query-string","tag-uniform-resource-locator","tag-url","tag-url-parts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Parts of URL - Virendra&#039;s TechTalk<\/title>\n<meta name=\"description\" content=\"We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Parts of URL - Virendra&#039;s TechTalk\" \/>\n<meta property=\"og:description\" content=\"We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/\" \/>\n<meta property=\"og:site_name\" content=\"Virendra&#039;s TechTalk\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-27T01:00:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-07-01T01:00:46+00:00\" \/>\n<meta name=\"author\" content=\"Virendra Chandak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:site\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Virendra Chandak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/\"},\"author\":{\"name\":\"Virendra Chandak\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"headline\":\"Parts of URL\",\"datePublished\":\"2012-05-27T01:00:10+00:00\",\"dateModified\":\"2012-07-01T01:00:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/\"},\"wordCount\":467,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"keywords\":[\"Query string\",\"Uniform Resource Locator\",\"URL\",\"URL Parts\"],\"articleSection\":[\"Glossary\\\/Definitions\",\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/\",\"name\":\"Parts of URL - Virendra&#039;s TechTalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\"},\"datePublished\":\"2012-05-27T01:00:10+00:00\",\"dateModified\":\"2012-07-01T01:00:46+00:00\",\"description\":\"We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/parts-of-url\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TechTalk\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Glossary\\\/Definitions\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/category\\\/glossarydefinitions\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Parts of URL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\",\"name\":\"Virendra's TechTalk\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\",\"name\":\"Virendra Chandak\",\"logo\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.virendrachandak.com\",\"https:\\\/\\\/www.facebook.com\\\/virendrachandak\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/virendrachandak\\\/\",\"https:\\\/\\\/x.com\\\/virendrachandak\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Parts of URL - Virendra&#039;s TechTalk","description":"We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/","og_locale":"en_US","og_type":"article","og_title":"Parts of URL - Virendra&#039;s TechTalk","og_description":"We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the","og_url":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/","og_site_name":"Virendra&#039;s TechTalk","article_publisher":"https:\/\/www.facebook.com\/virendrachandak","article_author":"https:\/\/www.facebook.com\/virendrachandak","article_published_time":"2012-05-27T01:00:10+00:00","article_modified_time":"2012-07-01T01:00:46+00:00","author":"Virendra Chandak","twitter_card":"summary_large_image","twitter_creator":"@virendrachandak","twitter_site":"@virendrachandak","twitter_misc":{"Written by":"Virendra Chandak","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/#article","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/"},"author":{"name":"Virendra Chandak","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"headline":"Parts of URL","datePublished":"2012-05-27T01:00:10+00:00","dateModified":"2012-07-01T01:00:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/"},"wordCount":467,"commentCount":1,"publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"keywords":["Query string","Uniform Resource Locator","URL","URL Parts"],"articleSection":["Glossary\/Definitions","Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/","url":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/","name":"Parts of URL - Virendra&#039;s TechTalk","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website"},"datePublished":"2012-05-27T01:00:10+00:00","dateModified":"2012-07-01T01:00:46+00:00","description":"We see so many URLs everyday, but do we know what are the parts of an URL, what does each part means? In this post I will discuss the various parts of the","breadcrumb":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.virendrachandak.com\/techtalk\/parts-of-url\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"TechTalk","item":"https:\/\/www.virendrachandak.com\/techtalk\/"},{"@type":"ListItem","position":2,"name":"Glossary\/Definitions","item":"https:\/\/www.virendrachandak.com\/techtalk\/category\/glossarydefinitions\/"},{"@type":"ListItem","position":3,"name":"Parts of URL"}]},{"@type":"WebSite","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website","url":"https:\/\/www.virendrachandak.com\/techtalk\/","name":"Virendra's TechTalk","description":"","publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.virendrachandak.com\/techtalk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17","name":"Virendra Chandak","logo":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.virendrachandak.com","https:\/\/www.facebook.com\/virendrachandak","https:\/\/www.linkedin.com\/in\/virendrachandak\/","https:\/\/x.com\/virendrachandak"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2vTtQ-cX","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":796,"url":"https:\/\/www.virendrachandak.com\/techtalk\/get-various-parts-url-using-javascript\/","url_meta":{"origin":803,"position":0},"title":"Get various parts of URL using JavaScript","author":"Virendra Chandak","date":"June 24, 2012","format":false,"excerpt":"Recently I wanted to get a domain name of the page on which I was currently on. I was trying to parse the entire URL of the page and then parse it using regular expressions etc. to get the domain name. I was able to get the required information using\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/javascript\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":255,"url":"https:\/\/www.virendrachandak.com\/techtalk\/more-htaccess-tips\/","url_meta":{"origin":803,"position":1},"title":"more .htaccess tips","author":"Virendra Chandak","date":"October 16, 2011","format":false,"excerpt":"In my previous post .htaccess tips I had started with what is .htaccess file and some things that can be done using it. In this post I'll cover more about .htaccess files. Topics Covered: Directory index file Redirection Preferred domain (www or non-www) Redirect old site to new site Redirect\u2026","rel":"","context":"In &quot;Server Configuration&quot;","block_context":{"text":"Server Configuration","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/server-configuration\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1023,"url":"https:\/\/www.virendrachandak.com\/techtalk\/protocol-relative-urls\/","url_meta":{"origin":803,"position":2},"title":"Protocol relative URLs","author":"Virendra Chandak","date":"October 7, 2014","format":false,"excerpt":"Many times we have seen warnings similar to \"This page contains both secure and nonsecure items\" or \"This page has insecure content.\". This happens when we are viewing a HTTPS site and some content on the site is loaded from HTTP. So when we try to view a site say\u2026","rel":"","context":"In &quot;Web Development&quot;","block_context":{"text":"Web Development","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/web-development\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1714,"url":"https:\/\/www.virendrachandak.com\/techtalk\/php-5-5-password-hashing-api\/","url_meta":{"origin":803,"position":3},"title":"PHP 5.5 Password Hashing API","author":"Virendra Chandak","date":"June 1, 2014","format":false,"excerpt":"Most of the applications or websites today have a user registration system which requires storing usernames, passwords etc. A developer of the application should always store passwords securely and never in plain text. There are many methods to encrypt or hash passwords and store in the database but which method\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/php\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":205,"url":"https:\/\/www.virendrachandak.com\/techtalk\/tools-for-web-development\/","url_meta":{"origin":803,"position":4},"title":"Tools for Web Development","author":"Virendra Chandak","date":"August 15, 2011","format":false,"excerpt":"With so many tools available for Web Development its hard to find the right tools for the job. In this post I will mention some of the tools that I personally use for Web Development. Also, I will give links to some websites which can be really helpful for certain\u2026","rel":"","context":"In &quot;Tools&quot;","block_context":{"text":"Tools","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/tools\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":572,"url":"https:\/\/www.virendrachandak.com\/techtalk\/migrating-servers-using-dns-ttl-for-minimum-downtime\/","url_meta":{"origin":803,"position":5},"title":"Migrating servers using DNS TTL for minimum downtime","author":"Virendra Chandak","date":"December 17, 2011","format":false,"excerpt":"You have your site running on an old hardware and want to migrate it to a new upgraded hardware which would result in change of the ipaddress of your site and in turn imply downtime for your site. You want to minimize the downtime due to the change in ipaddress.\u2026","rel":"","context":"In &quot;Optimization Tips&quot;","block_context":{"text":"Optimization Tips","link":"https:\/\/www.virendrachandak.com\/techtalk\/category\/optimization-tips\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/comments?post=803"}],"version-history":[{"count":0,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/803\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/media?parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/categories?post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/tags?post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}