Mobile app version of vmapp.org
Login or Join
Heady270

: Address bar showing long URL I recently upgraded my hosting account to Deluxe where I can host multiple websites. I added a domain name and created a folder in the root directory giving it

@Heady270

Posted in: #Godaddy #Url #WebHosting

I recently upgraded my hosting account to Deluxe where I can host multiple websites. I added a domain name and created a folder in the root directory giving it the same name as my domain name and uploaded my files. Now when I navigate the site the address bar shows:

'http://mywebsite.com/mywebsite/default.aspx'

I want it to display:

'http://mywebsite.com/default.aspx'

My thinking in creating folders that match the domain names is to keep them somewhat organized; never intended to have my domain names listed twice in the address bar.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

2 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

The address bar simply shows the domain its it. If you want it to show something else you have to redirect the browser to where you want it to be.

Since you added a domain, you have to specify where that domain is. Your example is slightly misleading since I only see one domain name. Say you have: maindomain.com
and you added *secondary_domain.com*

Then you need to point secondary_domain.com to maindomain.com/secondary_domain

Your hosting provider determines how to control this. Usually there is some kind of
control panel, the most popular one being cPanel. In it there is an option called
Add-On domains where you specify a domain name and the folder where it is located.

This will make your domains accessible through both paths: secondary_domain.com AND maindomain.com/secondary_domain.

In order to help search engines recognize this is the same domain and not duplicate content you should setup, also through the control panel (or using .htaccess if using Apache), a permanent (301) redirect from maindomain.com/secondary_domain to secondary_domain.com

10% popularity Vote Up Vote Down


 

@Rivera981

there is a feature called addon domain or parked domain on most hosting panels which in the first case you simply serve other domains to their own respected root folders on one hosting panel.
the parked domain lets you map a domain on a subdomain which again has its own root folder.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme