Linking to a sub domain

J

Jewells

I have published a FP website with a host provider. I've created a sub domain
with the host. How do I redirect the sun domain URL to a specific folder
within my site?
 
R

Ronx

Could you rephrase or expand the question?

When you create the sub domain you specify which folder the subdomain
content will be in - the creation process does the rest. If the subdomain
is already set up, the redirection is done.

For example, if you create a subdomain with URL http://tests.example.com
and want the content in a folder named testfolder in your site, the setup
for the subdomain will point http://tests.example.com to
http://www.example.com/testfolder

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
J

Jewells

Thank you for your help, you confirmed that I had created the sub domain
correctly.
The problem's now solved as after creating the sub domain I typed the URL in
my browser and nothing displayed, I hadn't realised I needed to wait 24hrs
for it to populate so I thought there was something else I needed to do. Duh

I've purchased a seperate domain name and if I wanted to change the FP web
folder to a sub web do you know if I can add a script to the subweb index
file to link it to the new domain?
 
R

Ronx

A link to any domain from any subdomain must be an absolute link:

In code view:
<a href="http://www.example.com/pagename.htm">link from page in subdomain to
pagename in example.com</a>

In the same way, a link from a domain to a subdomain will also have to be
absolute:

<a href="http://tests.example.com/pagename.htm">link to page in tests
subdomain</a>

In both cases, the http:// is very important - without it the links will
fail.

"change the FP web folder to a sub web" - I assume this means make the
subdomain folder a subweb - or are you intending to place content for the
new domain in a subweb of your existing site?

In either case, the links described above will have to be used.
Note that when publishing to your subweb you have to publish to the subweb,
not to the subdomain or new domain (depending on what you meant).
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top