Jump to content

Recommended Posts

Alright this is a fairly simple question.

 

I have web hosting for my current site, let's say for example sake www.shoes.com. That site is all well and fine. Now I want to start a new website called www.coats.com that is an entirely separate site, however I want to host it on the same web hosting. Basically, I have coats.com setup at shoes.com/coats, but instead I want it to say coats.com. I know masking works like that, however I want the links on the page to work in a way so that, when someone goes to coats.com and clicks on an internal link, let's say 'sports jackets', instead of it (the address/browser bar) saying "coats.com" or "shoes.com/coats/sportsjackets.html" it says "coats.com/sportsjackets.html."

 

I am aware that masking usually just uses a frameset as trick which is why the browser permanently says "coats.com." However, I was wondering if there any possible ways to do this, perhaps with mod_rewrite?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/168884-solved-domain-masking-question/
Share on other sites

haha...you're wanting to host two websites on the same account. BUY another hosting account!

Yea pretty much. It's not like it's expensive it was more or less a timeframe/business decision. It looks like we'll probably be buying another hosting account in the near future.

All your DNS supplier can do is point your A/CNAME records to the IP for the server.

The webserver (apache?) has to handle the interpretation of the HTTP request into pointing to a particular directory.

Hence you will have to tweak the virtual host config, which will require the cooperation of your current host.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.