Moving a site with links relative to site root

hi:
we have a dedicated server (Linux, Apache) with several
virtual hosts:
/vhost/site01/home/html/
/vhost/site02/home/html/
now, i need to add some sites (developed by other people and
working in
their own servers) as "microsites" inside site01. so i
created a folder
named microsites and a subfolder for each one:
/vhost/site01/home/html/microsites/xxx/
/vhost/site01/home/html/microsites/yyy/
and a FTP account for each developer
the problem is that one of them (HTML, Flash & a lot of
Perl scripts)
was developed using links relative to site root so, they
don't work anymore
besides changing every link to the new path, any other way to
solve the
problem? perphaps on server sidewith a directive on a
.htaccess file or
in httpd.conf?
tia,
jdoe

John Doe wrote:
> the problem is that one of them (HTML, Flash & a lot
of Perl scripts)
> was developed using links relative to site root so, they
don't work anymore
>
> besides changing every link to the new path, any other
way to solve the
> problem? perphaps on server sidewith a directive on a
.htaccess file or
> in httpd.conf?
Haven't used it since the DWMX time frame and that was only
for some quick testing, but an extension named Relativity can be
run site wide to change from one type to another:
http://e7x.com/dw/
Danilo Celic
|
http://blog.extensioneering.com/
| Adobe Community Expert

Similar Messages

  • Moving Complete Keynote with linked media to a backup machine

    Hi all, I am using keynote for a major live event presentation. It's mostly HD videos with PSD photos as graphics. I've designed the show so that everything is linking to my media. Everything is working great except that I need to have this running on a parallel backup machine during the show. When I copy the media to a new drive and then open the project I can't figure out how to tell keynote where the footage now lives. I get a progress bar that stay's on forever. How can I do this properly? Do I need to embed the media on the secondary machine? The file size will be in the 8 gig or more range. If I have to will I have problems running this live?
    Thanks

    You should have thought about that before installing the SSD.     Unfortunately when you have a configuration with more than one primary job, your backing up task becomes utterly more complicated.   Now you need a mirror drive for both drives, and/or backups more than twice the capacity.    Time to pair down the files you don't need frequently to some DVDs, or another drive*:
    http://www.macmaps.com/backup.html
    And I assume you are aware SSDs can't fully be erased?

  • Site root links problem in Dreamweaver CS3

    I am having trouble with links relative to site root when I
    work on my localhost with Dreamweaver CS3.
    I am building a site with PHP, MySQL using the WAMP server. I
    have a page ( www.site.com/index.php ) that I want to copy to
    sub-directories (e.g. www.site.com/about/index.php ) so I want to
    make the copying as painless as possible by using site root
    relative links (e.g. /about/index.php ). It works on the internet
    but NOT on localhost.
    Why is this? What can be done? Is there a fix if this is a
    bug? This seems like such a simple thing but it is such a
    problem.

    > Why is this?
    Because when your (local) webserver see's that you are
    directing it to the
    ROOT, it goes to ITS root, not the website's root (e.g.,
    htdocs or Inetpub).
    You can get around this by using virtual hosts (google it).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "KBwebpro" <[email protected]> wrote in
    message
    news:fr6g48$gs4$[email protected]..
    >I am having trouble with links relative to site root when
    I work on my
    > localhost with Dreamweaver CS3.
    >
    > I am building a site with PHP, MySQL using the WAMP
    server. I have a page
    > (
    > www.site.com/index.php ) that I want to copy to
    sub-directories (e.g.
    > www.site.com/about/index.php ) so I want to make the
    copying as painless
    > as
    > possible by using site root relative links (e.g.
    /about/index.php ). It
    > works
    > on the internet but NOT on localhost.
    >
    > Why is this? What can be done? Is there a fix if this is
    a bug? This
    > seems
    > like such a simple thing but it is such a problem.
    >

  • How to make site root-relative links work in DW and Server both?

    See details on buggy DW image link behavior, below. My question is:
    1) how to make site root-relative links work in DW and Server both? Or…
    2) how to reliably automate the change of several hundred legacy root-relative links of the form
    /images/image.jpg  to document-relative?
    That is, to
    ../images/image.jpg or
    ../../images/image.jpg or
    ../../../images/image.jpg etc…depending on where the directory is.
    The old format (/images/image.jpg ) used to work fine in my previous DW 8 configuration but appear grey in DW after “upgrading” to DW cs5.5 mac. (they look fine on the server, but it’s hard to edit image-heavy pages locally when they are all grey).
    I tried changing the files to how DW creates root relative links now:
    /public_html/images/image.jpg, which is a very easy, attractive root flow since there’s a one-to-one mapping. These look great in DW but are broken on the server!
    I looked at the “advanced” site setup, and it looked like it might be possible to nuke the /public_html/ part of my server info…but it also looked like there was the potential for doing damage changing these settings, which are automatically generated from our server connection settings, which seem to work.
    The “links relative to document/ site root” toggle…does that change how DW interprets existing links, or just change the default when you are adding a link?  I have made 80% of the file links document relative…before wondering if root-relative isn’t better?
    It sure seems less ambiguous for all those images if theres a way to make root relative work for DW design view, DW link check, and server.
    Summary of buggy behavior: (see test with images here)
    "old style" site root link
          /images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: "external link" (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a (existing format)
    "new style" site root relative link
          /public_html/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: broken
          Ease of switching: easy
    Document relative link
          ../../images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: good
          Ease of switching: hard (how to automate?)
    Absolute link
          http://www.oasisdesign.net/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: external (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a...not a real option
    Thanks!
    Similar discussion on "/"

    Hello again Jon!
    Thanks for jumping on this.
    All clear and understood about where publc_html is etc.
    No contemplation of nuking the actual public_html directory on the server, just the "/public_html" text string at the start of the DW-generated links.
    "/public_html" is automatically added to the front of the link in DW if I create the link with any of the GUI tools, if I have "site root relative" selected. And ""/public_html" ends up in the code, and gets uploaded that way to the server, where it (obviously) doesn't work.
    Doesn't sound like it is supposed to work this way. Also, what seems to be the usual root relative format (/images/image.jpg) shows as a broken link in the GUI and an external link in the DW link check. All this togther makes me thinkI have some obscure setting incorrect?
    The setting that caught my eye is manage sites/ site setup/ advance settings/ local info/ web url,  which is automatically set to http://www.oasisdesign.net/public_html/
    it gives an option to change it but it makes every effort to make this NOT look like something users should mess with:
    Having gone through the more careful thought process during this post, I'm ready to do the experiment of changing the remote server web URL (why is it wrong by default?)...think I'll eat dinner first so there's 45 min to avert disaster if anyone knows this to be a bad idea!
    Art
    PS--don't  have a local testing server...don't think this will solve the GUI broken link/ link shows as external problems.
    Is there an easy, automated way to change links sitewide from document to root relative?

  • Link to site-root relative style sheet not working CS4

    I am trying to define links to site-root relative external style sheets - as I believe that IE conditional comments prevent Templates from correctly updating the links. The styles are not being applied when I use any href path begining with "/".  So, the following do not work:
    <link href="/styles/myStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="/myStyleSheet.css" rel="stylesheet" type="text/css" />
    Dreamweaver can open the css file from a right-mouse click and even give me warnings about css properties as a tool-tip as I hover over the file. The styles are applied fine with document relative paths:
    <link href="../myStyleSheet.css" rel="stylesheet" type="text/css" />
    Any ideas?
    Jeff

    Close your meta tag.
    <meta name="description" content="blah, blah, blah...>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Moving a site collection to be a sub site of the same site collection

    Currently I have a publishing site collection of type enterprise wiki, that stores wikis for our HR department. And I added all the current wiki pages to it. But in the future we might need to create another sites for different departments suh as; finance,
    technical, etc.
    So I might need to have the departments represented as subsites of the same site collection.and in this situation I will need to move the current HR site collection to be a sub site of the current site collection. I know that I can move a site collection
    to be a sub site by doing:-
    Export the Site Collection
    Create the New Subsite
    Import the Exported Site Collection
    Delete the Old Site Collection
    But I have the following questions:-
    Is it possible to move a site collection to be a sub site of the same site collection in SP2013, baring in mind that i am using a publishing site. and on this link it is mentioned that it is not possible in SP2010 http://blogs.technet.com/b/stefan_gossner/archive/2009/05/27/limitations-of-stsadm-o-export-import-related-to-publishing-sites.aspx?
    Can I continue with my current approach of having my HR wiki inside the site collection (not as a sub site). And in the future if I need to have the departments as sub sites , I can move the current site collection to be a sub site ?
    Currently I have created new page layouts for the current site collection, so will moving my site collection to be a sub site moves the page layouts using the export/import approach ?
    What are the things I will lose when I move a site collection to be a subsite , in respect to data, page layouts, web parts, etc.
    Thanks in advance for any help.
    Regards

    It is not possible to export the site collection to a sub site irrespective of what  type of site template you are using. You can only export a sub site and import it to a sub site not site collection to a sub site. If you import a publishing site,
    the pages do not have the correct link to the page layout. The the page is hard-coded to the page layout from the original site. You can use the powershell specified in the below link to fix them
    https://donalconlon.wordpress.com/2011/01/21/fixing-pages-and-their-layouts-after-importing-a-published-site/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Issues with using relative links in Captivate 8

    Is anyone else having issues with using relative links in Captivate 8?  These links all used to work in the previous version of Captivate. And I could have sworn this was fixed already once in Captivate 8 but it's popping up again for us. Here is the situation... We have courses that are made up of multiple lessons which as separate Captivate files. Within those lessons are buttons to link to external documents (which live in a shared document folder), demonstrations, etc.  We use relative links because we post these to our amazon servers and we also sell them to clients where they can post them on their own web servers or in their LMS.  SO we can't put in full paths for the links or we'd have to change them constantly.  So an example is that the link for a button might be "../Document/nameofdoc.pdf"  This would be going to a user guide or something that is posted in the "Document" folder that lives at the same level as the lesson's folder. But now, all of the sudden, none of our bazillion links is working. And I've tried buttons, hyperlinks, and even the old click box. Nothing works with relative links. And I did check the permissions on every file and folder on our Amazon server to verify nothing changed there as well.   Any suggestions?

    I have the same issue with relative links using Captivate 8.  I am trying to load Captivate modules into an LMS using relative links to document files within the LMS.  The links work fine during a site page test so not an issue in the LMS, but from the Captivate module they aren't working....
    Help?

  • Solution to using Site Root with Sub-folders on Testing Server & Browser Previews

    Hi Everyone
    Have found an elegant solution when using Site Root relative linking for a website, that allows browser previews, even when the testing server uses sub-folders and the live code references just the server site root " / " of the live server and not the sub-folder structure of the testing server.  This is really useful when you don't want to use document relative linking, which normally takes care of this problem in Dreamweaver.
    The solution is to use sub-domains referencing the sub-folders on the testing server, so the sub-folders appear as the root of each website and the html code pointing to the site root works correctly on both testing & live servers without alteration.
    Testing Server Setup
    One testing server domain is used for all client development work:
    For example:  www.testingserver.com
    On the testing server there are multiple sub-folder (one for each client website being developed):
    For example:  www.testingserver.com/clientA/ ,  www.testingserver.com/clientB/ , www.testingserver.com/clientC/
    Live Server Setup
    The site code needs to be developed with the final live server folder structure (url references) in mind:
    For example:  www.livesite.com (with all pages referencing the root of the live site server)
    Page URLs on Testing & Live Servers
    /page-name.html
    Testing server url:  www.testingserver.com/clientA/page-name.html
    Live server url:  www.livesite.com/page-name.html (without /clientA/ sub-folder)
    Browser Previews Don't Work
    You want to be able to run browser previews on the testing server while developing the website.  To do this you normally have to reference the sub-folder structure of the testing server in the url for things to work right:
    For example www.testingserver.com/clientA/page-name.html
    What do you do, when you can't keep switching all the urls in the code from pointing to the sub-folder to pointing to the site root, and you don't want to use document relative linking?
    One Solution - Sub-domains on Testing Server
    In your domain hosting (outside of Dreamweaver) setup a sub-domain to point to the testing server sub-folder.
    For example:  Sub-domain clientA.testingserver.com points to www.testingserver.com/clientA (sub-folder)
    So now when you reference the sub-domain it sees the sub-folder as the site root and all your problems are solved.
    Dreamweaver Site Definition Setup
    Site Definition under "Local Info"
    Links relative to: Site Root
    Site Definition under "Remote Info" (live server)
    Access: FTP
    FTP host:  ftp.livesite.com
    Host directory: /
    Site Definition under "Testing Server" 
    Access: FTP
    FTP host:  clientA.testingserver.com
    Host directory: /
    URL prefix: http://clientA.testingserver.com
    (location of the site's root folder on the testing server, the sub-domain redirection takes care of pointing to the sub-folder)
    This is just one solution but it works well for me as it doesn't have any cost associated with it under our hosting package where you can have multiple sub-domains setup.
    Hope this helps someone in a similar situation.
    Aly

    Just Google it, or run out and buy a copy of David Powers' Foundations Dreamweaver CS4 with CSS, Ajax and PHP, a book that is never out of reach for me.  He details the process explicitly for both Mac and PC.
    For me, on W7, I edit the C:/Windows/System32/drivers/etc/hosts file, and add the ip of my testing server along with the site alias -
    192.168.1.82  site.local
    Then I add this same designation to my httpd.conf file in Apache on the testing server.  Finally I restart Apache.
    Now from my production machine if I browse to "http://site.local", I get to see either the default file in the root of the site on the testing server, or a directory of the site on the testing server (my testing server is a unix box running on my LAN at that ip address).  Furthermore, all of my root relative links now work as they would if the pages were being browsed from the live server.

  • Since moving iWeb site my podcast won't publish to iTunes

    Ok, I have just recently moved my iWeb site from MobileMe to LCN and they seem to be hosting it fine EXCEPT my podcast is no longer downloadable from iTunes. This is obviously cos it's still pointing to the old MobileMe address so, using iWeb to try and republish the podcast from the new site I get the message "We had difficulty reading this feed. Bad http result code: 404"
    It seems to be the case that, since moving my site, I no longer have an rss feed to send to iTunes. I have asked LCN about this and I got this response:
    "Unfortunately we are not able to assist with this functionality of the iWeb software - as the publishing to itunes via the iWeb software is not something over which we have any control or any advanced knowledge to be able to advise if this functionality is simply not possible if not publishing to the Mobile-Me service.
    I would recommend raising this enquiry directly with Apple support as they should be more able to advise on a resolution to this problem."
    Does this mean I have just moved my site to the wrong people and should use a different hosting service or is there something I can do here? Please help, I'm kind of lost here!

    Web should create the RSS files automatically - there are links to them on the sites - and they should be at
    http://thetrap.co.uk/web/Podcast/rss.xml
    http://thetrap.co.uk/web/Event_Horizon_Crescent/rss.xml
    (two separate podcasts) but there are no files at these addresses. The first thing to do is to check that these checkboxes are enabled in the Inspector:
    though I would have thought the fact there are links to the feed would mean that these boxed were checked.
    Then you should do a Publish all files from iWeb, using the FTP option in the publish pane. (If you had simply copied the pages over from MobileMe, that could cause problems; you need always to publish from iWeb).
    If that doesn't do any good you have some ongoing problem in iWeb and the best place to ask would be in the iWeb Forum.

  • My URL has been duplicated since moving my site from another Mac

    When I originally made my company site it was just a normal www.website.com and thats how it appeared in the address bar.  I then moved the site to another Mac (cant quite remember the steps I used) and did some updates to it and republished it and now it appears as www.website.com/WebSite.com/Home.html.  Nothing has changed with my hosting company or anything like that.  It literally changed just from moving it to anoter computer which is why I suspect that something happened with the folders or something with iWeb.  Any help would be greatly appreciated.

    You want to have your cake and eat it too?
    Well, you have to choose. Do it the iWeb way, the situation you have now, or your way, publish to a folder and upload the content of that folder to the server.
    As it was before.
    You can't have both.
    BUT.
    As always, there still is a way to eat the cake.
    Read this :
    http://blog.wyodor.net/2011/08/avoiding-then-iweb-sitename-in-url.html
    It works. I know, I baked the cake.
    You choose.
    (Ignore the spelling error in the url)

  • Hi, I'm moving my site from MobileMe to Filezilla and there is apparently a coding error on iWeb that means when I try to get onto my site there's no access online and it says there are too many redirects. Anyone have any idea what this might be?

    Hi, I'm moving my site from MobileMe to Filezilla and there is apparently a coding error on iWeb that means when I try to get onto my site there's no access online and it says there are too many redirects. Anyone have any idea what this might be?

    Well, firstly Filezilla is not a hosting company but an ftp client that helps you upload your site to your new server. You need to purchase a new hosting account first though.
    If you have iWeb 09 then you can publish directly to your new host and you select the publish to ftp option and not MobileMe - MobileMe won't be here after tomorrow.
    You can also publish to a local folder if want to and use Filezilla to upload your site to your server.
    You don't need re-directs as MobileMe won't be here so you need to cancel and delete your domain name from your MobileMe account and then cancel any domain name forwarding that you have at your domain name registrar - that is what the redirects are about.
    Firstly ensure that you have your new hostings account - Filezilla is not a host, rather an ftp client that you use to upload your site.

  • I have just moved my site to Rage. Everything was fine until one of my Album pages would not publish. Any suggestions?

    I have just moved my site to Rage. Everything was fine until one of my Album pages would not publish. Any suggestions?

    if it's music then drm is not used there any more and drm can be removed from previously bought drm material without cost

  • No phonegap.js on site root and other problems building apps with phonegap

    Hi all,
    I'm starting to develop some apps with dw cs5.5 but I encounter several problems here.
    I just installed the Jquery mobile update (using the official adobe extension) and now every new project I start (using the mobile + phonegap template) I see there is no phonegap.js file in the site root.
    And when I see the page using 'live' options I see the page rendered correctly but then, when I click on a subsequent page (page 2, page3 or page4...), no back button appears on the header.
    what can I do to restore a productive environment?
    tia
    tony

    I just uninstalled the jquery mobile update and now the BACK button is BACK.
    No phonegap.js file yet....
    any idea why the phonegap.js is not there yet?
    TIA again, sorry for the semi useless post.
    tony

  • Hi, what do i do if I receive an email with link but when I click the link my mail stop moving...

    hi what can i do if i receive an email with link but when I click the link my mail wont move anymore?

    Close the Mail app in the Task Bar and re-launch.
    Double-click the Home button to reveal Task Bar. Hold Mail app down for a second or two; tap the minus sign to close app.
    If it still doesn't work, try a reset.
    Hold the Sleep and Home button down until you see the Apple logo.

  • A PDF document with links to other PDFs corrupts the URL and get 404. Works in IE.

    One of our supplier sites has manuals online that are PDF docs with links from one to another. For example, when I click on "Tanaka" I get a PDF menu of Tanaka service manuals, etc. When I click on a section, such as "Chainsaw" I get a 404. Part of the directory structure in the URL is missing. For example when in the Tanaka PDF menu I click on Chainsaw I go to http://www.parklands.net/Resources/Tana%20CSaw%20Menu.pdf which is wrong. It should be http://www.parklands.net/Resources/Tanaka/Tana%20CSaw%20Menu.pdf, and in IE it is.
    == URL of affected sites ==
    http://

    The linked documents will not be automatically converted to PDFs and merged
    with your file, neither in Acrobat Standard nor in Acrobat Pro. You can do
    it, but you'll need to do it manually by converting all the files to PDFs,
    merging them and then adding the links between them.

Maybe you are looking for

  • CRM 5.0 Webclient - Characteristic Change Pointers

    Hi Gurus On ERP we have site values which have characteristic data attached. On a daily basis from ERP we run transaction BD21 with Message Type "CLFMAS" which picks up changed characteristic data and creates Idocs which are then sent to CRM and proc

  • Should I upgrade Intel Core Duo 1 Mac Mini (2006) to Snow Leopard?

    Okay I have a 80 GB Apple Mac Mini with Intel Core Duo 1 proccessor that shipped with Mac OS X Tiger (10.4.7) currently running 10.4.11 that I want to upgrade to either Leopard or Snow Leopard in a few months just in time for Christmas which I acquir

  • Delegation in ABAP OO possible?

    Hi I would like to use standard SAP standard object, but to extend some attribute and method without direct modification. BO delegation is perfect for this requirement, how about implementing object if it is ABAP OO? Thanks

  • base target=_self issue in modal popup window.

    Hi, I have implemented a modal popup window as described in: TIP: Building Modal Popup Windows I also created a Search button (per step 8 "polishing") The html header of the page attributes of the LOV window contains (step 3): <META HTTP-EQUIV="Pragm

  • Jabber file transfert from lan trouble

    Hi, My mac is on a lan, I can receive incoming jabber file transferts but cannot send files. this is the xml query sent by ichat : <iq from='[email protected]/mac' to='[email protected]/gajim' type='set' id='iChat_78811B90'> <query xmlns='http://jabb