|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
> 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/ |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
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! |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
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/ |
|
![]() |
| Outils de la discussion | |
|
|