PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Moving Files to a new folder within site
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Moving Files to a new folder within site

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2008, 06h17   #1 (permalink)
eakjck
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Moving Files to a new folder within site

I did a search under document-relative and root-relative links and moving
files, but didn't see an answer to my question.
I have an existing site. What I'm trying to accomplish is this:
I want to copy & paste all the files from my site root's folder to a new
folder within my site root (I think my Host calls it a subdomain... Where the
URL would read: www.mysite.com/subdomain/index.htm).

However, I tried to copy and paste those files into the new folder
(subdomain). Then I went to the URL of the subdomain index page
(www.mysite.com/subdomain/index.htm). When I clicked on a link to another
page (in my nav bar, for example), the link took me to my site root URL (ie:
www.mysite.com/contactus.htm). I thought it would take me to:
www.mysite.com/subdomain/contactus.htm.

From research it sounds like it has something to do with the document-relative
and root-relative links, however I could not find a solution. Do I actually
have to go into each link on each page within the new folder (subdomain) and
change the links to "point" to the pages within that new folder? I have almost
200 pages!

Thanks for any you can provide! I appreciate it.

  Réponse avec citation
Vieux 10/04/2008, 06h28   #2 (permalink)
Alan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Moving Files to a new folder within site



> Do I actually
> have to go into each link on each page within the new folder (subdomain)


it's not a sub domain. it's a folder within the site.

a subdomain would be http://something.example.com instead of
http://example.com/thisfolder/

I'm hesitant to offer suggestions after someone has done a mass movement of
files. If they haven't made backups and understand how paths work at this
point they are probably [bad word] 'ed

If you want to change a set of files from using site root relative paths to
using document relative paths, the relativity extension from here:
http://e7x.com/dw/
will do that.

Do not apply the extension if the links are broken to begin with.



--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/



  Réponse avec citation
Vieux 10/04/2008, 15h47   #3 (permalink)
eakjck
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Moving Files to a new folder within site

I have my files backed up. They are fine. I'm just trying to create either
another folder or subdomain, and copy & paste my files into there in order to
have an identical site under a different folder or subdomain (either would be
fine). I want to keep my site root files as is. I think I am slowing figuring
the problem out. It's a headache.

If I can't figure it out, I'll be able to narrow my question down to
specifics. Thanks!





  Réponse avec citation
Vieux 10/04/2008, 16h20   #4 (permalink)
Alan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Moving Files to a new folder within site

here's another guess-

did you create a subdomain?

if yes- the way to access those files with a url is
http:subdomain.example.com

some hosts put the storage folder for subdomains WITHIN the main site's
public file storage. so you can also see the files at
http://example.com/subdomain/

but this can give you headaches until and unless you decide to treat it as a
distinct unique Site in dreamweaver.

Make a new site definition for the subdomain in dreamweaver, and use the
"host directory" line of the remote server info so the files go to the
correct folder on the remote.

Then- Do not edit any of the subdomain files when in the main www site
definition. Ignore that you can see the subdomain folder. Only edit
subdomain files when in the subdomain site definition.

Do not use dreamweaver's browse to file or point to file to make any links
BETWEEN the main site and subdomain. That would make a relative path which
will not work on the published pages. Only use full absolute http:// paths
when linking between them.

As to what you first asked- I'm guessing you want to move a working copy of
some files into the subdomain's folder as a starting point for it's pages?
Go into the hard drive and copy/paste the files. Move all needed things
included images/css/js and put them in the same relationship so relative
paths would work.

Short version- copy the contents of the site folder, open the subdomain
folder, and paste.

--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h03.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11766 seconds with 12 queries