HighDots Forums  

Subdomains and Dreamweaver

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Subdomains and Dreamweaver in the Macromedia Dreamweaver forum.

Reply
 
Thread Tools Display Modes
  #1  
Old   
Cheeop
 
Posts: n/a

Default Subdomains and Dreamweaver - 10-04-2005 , 07:36 AM






Hi,
My site is mypictureshere.com.
I'm new to dealing with subdomains. Here's how my ISP handles it: A
subdomain is a subfolder off my root (in this case my httpdocs folder).
So if I create a subdomain of pictures for myself, that would be at:
sean.mypictureshere.com, or more properly, http://sean.mypictureshere.com.

So let's say I make a link (from
mypictureshere.com/pages/galleries/vacation.html to
http://sean.mypictureshere.com/england2004/index.html). When you go to the
website and hover over the link, it will say exactly
http://sean.mypictureshere.com/england2004/index.html on the status bar on the
bottom. Now, let's say I rename the folder the file is in (instead of
england2004, I want to just call it england, for instance). When Dreamweaver
updates the link, it will no longer have http:/ in front of it, it will start
with /sean.mypictureshere.com/etc.etc.

This means that when I upload the files to the server, then go and click on
the link, it will resolve as:
http://www.mypictureshere.com/sean.m...004/index.html
Which will *work*, strictly, but I don't want it to say that. I want it to
say http://sean.mypictureshere.com, without having to go and manually update
the links.

Any ideas how to get Dreamweaver to naturally work with subdomains more easily?

Thanks.




Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Subdomains and Dreamweaver - 10-04-2005 , 08:04 AM






Make the http: field of the local site definition point to the root folder
of the subdomain.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Cheeop" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi,
My site is mypictureshere.com.
I'm new to dealing with subdomains. Here's how my ISP handles it: A
subdomain is a subfolder off my root (in this case my httpdocs folder).
So if I create a subdomain of pictures for myself, that would be at:
sean.mypictureshere.com, or more properly, http://sean.mypictureshere.com.

So let's say I make a link (from
mypictureshere.com/pages/galleries/vacation.html to
http://sean.mypictureshere.com/england2004/index.html). When you go to
the
website and hover over the link, it will say exactly
http://sean.mypictureshere.com/england2004/index.html on the status bar on
the
bottom. Now, let's say I rename the folder the file is in (instead of
england2004, I want to just call it england, for instance). When
Dreamweaver
updates the link, it will no longer have http:/ in front of it, it will
start
with /sean.mypictureshere.com/etc.etc.

This means that when I upload the files to the server, then go and click
on
the link, it will resolve as:
http://www.mypictureshere.com/sean.m...004/index.html
Which will *work*, strictly, but I don't want it to say that. I want it
to
say http://sean.mypictureshere.com, without having to go and manually
update
the links.

Any ideas how to get Dreamweaver to naturally work with subdomains more
easily?

Thanks.




Reply With Quote
  #3  
Old   
Cheeop
 
Posts: n/a

Default Re: Subdomains and Dreamweaver - 10-04-2005 , 08:36 AM



Right now, it says httpdocs/
I tried changing it to not say httpdocs/, but when I go to upload, it seems to
cause a problem, and file relations are still not absolute (in other words, it
does not put http:// in front of the subdomain).

In fact, as I type this, DW is performing a move of a subfolder from
mypictureshere.com/galleries/vacations/2004/cancun-tsubaki/ ... and is moving
it to carlos.mypictureshere.com/cancun-tsubaki/
It's renaming all of the links to:
/carlos.mypictureshere.com/cancun-tsubaki/
And what I want it to rename them to is:
http://carlos.mypictureshere.com/cancun-tsubaki/

Do you think that deleting what I have in my local site def to nothing
(instead of httpdocs/) is going to fix this? I think instead it would refer to
the file as:
/httpdocs/carlos.mypictureshere.com/cancun-tsubaki/
no?


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Subdomains and Dreamweaver - 10-04-2005 , 08:52 AM



Wait - the http: field should say something like (for a single domain
site) -

http://www.example.com

and I am telling you that you should have something like this for a
subdomain site -

http://www.example.com/subdomainfolder

I don't know where the rest of your post is going....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Cheeop" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Right now, it says httpdocs/
I tried changing it to not say httpdocs/, but when I go to upload, it
seems to
cause a problem, and file relations are still not absolute (in other
words, it
does not put http:// in front of the subdomain).

In fact, as I type this, DW is performing a move of a subfolder from
mypictureshere.com/galleries/vacations/2004/cancun-tsubaki/ ... and is
moving
it to carlos.mypictureshere.com/cancun-tsubaki/
It's renaming all of the links to:
/carlos.mypictureshere.com/cancun-tsubaki/
And what I want it to rename them to is:
http://carlos.mypictureshere.com/cancun-tsubaki/

Do you think that deleting what I have in my local site def to nothing
(instead of httpdocs/) is going to fix this? I think instead it would
refer to
the file as:
/httpdocs/carlos.mypictureshere.com/cancun-tsubaki/
no?




Reply With Quote
  #5  
Old   
Cheeop
 
Posts: n/a

Default Re: Subdomains and Dreamweaver - 10-04-2005 , 11:19 AM



Hi Murray and thanks for replying again.

After I create a link to a folder which resides in a subdomain... by selecting
the text or graphic which will be the link, then dragging the reticle to the
file I want it to point to (which is in a subdomain folder, like
sean.mypictureshere.com), I *want* for it to create the link as:
http://sean.mypictureshere.com/filename.html

Instead it's creating a link that looks like:
/sean.mypictureshere.com/filename.html

So that when it's uploaded to the server, the server shows:
http://www.mypictureshere.com/sean.m.../filename.html

I don't want it to say that when they click on their link. I want for it to
just take them to:
http://sean.mypictureshere.com/index.html

Which is a much easier link for a person to copy/paste into an e-mail to their
friend so they can say, "Check out these pictures I took at the grand canyon!"
or whatever.

I have not yet tried your suggestion about the http: reference (and I'm at
work now so can't try it until I get home). I'll let you know how that goes.

Sorry if my posts ramble a bit, I am doing chat technical support at work and
come here and enter a paragraph, then go reply to a chat, then come back here,
etc.


Reply With Quote
  #6  
Old   
Alan
 
Posts: n/a

Default Re: Subdomains and Dreamweaver - 10-04-2005 , 12:41 PM



as i said in a reply the other day-

q
Most important- for any images or links between subdomains, you will have to
use absolute paths- full http://www.example.com/ paths
In other words- to link from a page in subdomainA.example.com to
www.example.com you have to make the ahref http://www.example.com
A relative path just won't work.
/q

IF you want to use point to file or browse to file to make these links
between subdomains, you will have to do a find and replace when done.

something like
find "sean.mypictureshere.com/

notice the " mark.

replace with
http://sean.mypictureshere.com/



Reply With Quote
  #7  
Old   
Cheeop
 
Posts: n/a

Default Re: Subdomains and Dreamweaver - 10-05-2005 , 08:58 PM



Alan,
That's what I've ended up doing. As soon as I move a folder that has links
pointing to it from other files, I have to remember which files to open and do
a search and replace in there.

My string looks more like:
Replace ../..
With http:/

Only one slash because it already has a ../../sean.my-etc.

Anyhow, I was hoping there was an easier way in DW to do that.

One last (hopefully) question on this topic...

How do search engines view all of these sub domains with a bunch of links
pointing back and forth to each other on their index.html and sitemap pages?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.