{"id":11040,"date":"2023-12-25T11:27:11","date_gmt":"2023-12-25T11:27:11","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=11040"},"modified":"2023-12-25T11:27:12","modified_gmt":"2023-12-25T11:27:12","slug":"xampp-always-redirect-to-dashboard","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/","title":{"rendered":"xampp always redirect to dashboard"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Write a content for .htaccess for all traffic on domain reveieved on http or http:\/\/www redirect to https:\/\/www<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If XAMPP is always redirecting to the dashboard page, it&#8217;s likely due to its default configuration settings. When you access <code>http:\/\/localhost<\/code>, XAMPP is configured to redirect to its dashboard or splash page. This behavior is controlled by the Apache configuration files and can be modified if you prefer it to point to another directory or project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution IF YOU HAVE MULTIPLE DOMAIN Hosted at Same Server<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vi \/opt\/lampp\/htdocs\/.htaccess\n\nRewriteEngine On\r\n\r\n# Ensure mod_rewrite is enabled\r\n&lt;IfModule mod_rewrite.c>\r\n\r\n    # Redirect HTTP to HTTPS with www\r\n    RewriteCond %{HTTPS} off &#91;OR]\r\n    RewriteCond %{HTTP_HOST} !^www\\. &#91;NC]\r\n    RewriteRule ^ https:\/\/www.%{HTTP_HOST}%{REQUEST_URI} &#91;L,R=301,NE]\r\n\r\n&lt;\/IfModule>\r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Solution if you have Single Domain<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Modify <code>httpd.conf<\/code><\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <code>httpd.conf<\/code> in a text editor.<\/li>\n\n\n\n<li>Look for the <code>DocumentRoot<\/code> directive. It might look like this:apacheCopy code<code>DocumentRoot \"C:\/xampp\/htdocs\"<\/code><\/li>\n\n\n\n<li>Change the path (<code>C:\/xampp\/htdocs<\/code> in the example) to the directory of your choice where your project or website files are located.<\/li>\n\n\n\n<li>Similarly, find the <code>&lt;Directory&gt;<\/code> directive that corresponds to the <code>DocumentRoot<\/code> and change the path there as well.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Write a content for .htaccess for all traffic on domain reveieved on http or http:\/\/www redirect to https:\/\/www If XAMPP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11040","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>xampp always redirect to dashboard - scmGalaxy<\/title>\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.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"xampp always redirect to dashboard - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Write a content for .htaccess for all traffic on domain reveieved on http or http:\/\/www redirect to https:\/\/www If XAMPP [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-25T11:27:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-25T11:27:12+00:00\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"xampp always redirect to dashboard\",\"datePublished\":\"2023-12-25T11:27:11+00:00\",\"dateModified\":\"2023-12-25T11:27:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/\"},\"wordCount\":149,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/\",\"name\":\"xampp always redirect to dashboard - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2023-12-25T11:27:11+00:00\",\"dateModified\":\"2023-12-25T11:27:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/xampp-always-redirect-to-dashboard\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"xampp always redirect to dashboard\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"xampp always redirect to dashboard - scmGalaxy","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.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/","og_locale":"en_US","og_type":"article","og_title":"xampp always redirect to dashboard - scmGalaxy","og_description":"Write a content for .htaccess for all traffic on domain reveieved on http or http:\/\/www redirect to https:\/\/www If XAMPP [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/","og_site_name":"scmGalaxy","article_published_time":"2023-12-25T11:27:11+00:00","article_modified_time":"2023-12-25T11:27:12+00:00","author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"xampp always redirect to dashboard","datePublished":"2023-12-25T11:27:11+00:00","dateModified":"2023-12-25T11:27:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/"},"wordCount":149,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/","name":"xampp always redirect to dashboard - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2023-12-25T11:27:11+00:00","dateModified":"2023-12-25T11:27:12+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/xampp-always-redirect-to-dashboard\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"xampp always redirect to dashboard"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/11040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=11040"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/11040\/revisions"}],"predecessor-version":[{"id":11041,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/11040\/revisions\/11041"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=11040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=11040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=11040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}