PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

[FIXED] Why (non existing) subdomain of my add-on domain redirecting to primary domain?

 November 13, 2022     .htaccess, laravel, plesk, server, subdomain     No comments   

Issue

I am using 1and1 cloud with plesk.

I have a http://primary.com and an http://addon.com

Right now if if some one enter any none existing subdomain e.g. blabla.addon.com, the URL in browser address bar stays the same but contents coming from http://primary.com/

I wanted contents to come from http://addon.com

Can anyone please guide me to the right direction?


Solution

This happens because by default Plesk will serve it's "Web Server's Default Page" template.

If you want to change this behaviour you need to set a default domain that will be served instead.

The setting you are looking for is located at:

Tools & Settings > IP Addresses > Your IP (click) > Default site > Domain (addon.com)



Answered By - uu01
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing