• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Testing Server URL Prefix ERROR

Explorer ,
Feb 18, 2012 Feb 18, 2012

Copy link to clipboard

Copied

hello,

been beating my head up against a wall trying to figure this one out. any help would be appreciated!

i'm a noobie with having a local testing server, so please... be gentle 😉

i setup MAMP (on Mac OS 10.7.x) by following the instructions given in the Lynda.com video series on "Dreamweaver CS5 with PHP & MYSQL" and it seemed to work just fine at first.

had a buddy convince me to temporarily change the testing server to be the same as the remote server so he could help me out with some coding. all was fine with that

(except for a pesky non-invasive issue @ http://forums.adobe.com/message/4213465#4213465).

but now i want to bring the testing back to my MAMP and keep getting this error message:

The URL prefix "/sitename/" of your testing server does not match the URL prefix "/" of your site. Since you are using site relative links it is possible that your links display incorrectly at runtime. You can edit the Web URL in your server settings. Proceed anyway? No/Yes.

this isn't making any sense to me. here, i'll provide screenshots of my settings in case you all can see something i'm missing.

THANKS!!!

Screen Shot 2012-02-18 at 4.42.17 pm.pngScreen Shot 2012-02-18 at 4.42.24 pm.pngScreen Shot 2012-02-18 at 4.43.06 pm.pngScreen Shot 2012-02-18 at 4.44.10 pm.png

TOPICS
Server side applications

Views

4.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Feb 23, 2012 Feb 23, 2012

hi SnakEyez02.

dude, thank you SO much for being so helpful & hangin' in there with me on this. i'm really trying to wrap my brain around this, but i'm still not quite "getting it".

i understand the difference between a "site root" & "document" link. so it does seem this issue is because of how i have my directories setup, huh.

so, if it really comes down to those 2 choices to fix this, which would you recommend?

new question: should i just point my testing server directory to the same as my site d

...

Votes

Translate

Translate
Explorer ,
Feb 20, 2012 Feb 20, 2012

Copy link to clipboard

Copied

@SnakeEyez02 (who posted a blurb about this here)

THANKS again for looking into this!!!!!

just some added notes since i posted this - i DID try last night the Site menu -> Advanced -> Recreate Site Cache option. but that made no change.

i also went ahead and just re-created a whole new site definition from scratch. retyped in all the info, being very careful. DW created the new site with all my files. everything worked until i added the testing server stuff from above.

so i guess i must be doing something wrong (or technically, the Lynda.com tutorial taught me wrong 😉

just for clarity sake, this next screenshot is the actual message i get that i typed out above...

Screen Shot 2012-02-21 at 12.48.02 pm.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2012 Feb 22, 2012

Copy link to clipboard

Copied

Does the "Server Folder" of the testing server setup match the "Local Site Folder" under the Site tab of the Site Manager?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2012 Feb 22, 2012

Copy link to clipboard

Copied

no, it does not.

in the instructions, it states very specifically to have the testing server go to the MAMP htdocs folder or have it set elsewhere. i didn't like the idea of that being in my "applications" folder with the MAMP app etc, so i made one elsewhere and pointed to that. and it seems to work despite the error message (i think).

do you think it should be the same instead?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 23, 2012 Feb 23, 2012

Copy link to clipboard

Copied

That's the error that DW is stating.  It's letting you know that paths are not matching up from what DW can determine.  The simple solution is just to change to Document Relative links (Site Manager -> Advanced Settings -> Local Info).

Here is the information of how DW explains the link setup: http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7c42a.html

Here is the short of what happens:

You create page1.html.  That links to page2.html inside the "support" folder which is inside the "company" folder.  In a site-root relative world, DW would write the link to page2.html as "/company/support/page2.html" as opposed to the document relative link would which be "company/support/page2.html".  The difference is the leading "/" which tells the browser to go to the root.  So if you want to go to page3.html inside the "company" folder from page2.html the links would be site-root "/company/page3.html" and the document relative would be "../page3.html" telling the browser to go up a level rather than restating the entire path.  Because your paths are different what DW is warning you is that it might be possible that links will fail because the site-root relative link is "/vanderbilt-adec/company/support" which is different from your local environment.  DW will not automatically rewrite the links just to test the page.  So if you wanted to proceed, the "vanderbilt-adec" folder would need to be defined in Apache as an Virtual Host so that it could be directly access via a URL in your browser and not in a subfolder of another root, in this case "localhost".  David has an excellent tutorial on setting up Virtual Hosts: http://foundationphp.com/tutorials/vhosts_mamp.php

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2012 Feb 23, 2012

Copy link to clipboard

Copied

LATEST

hi SnakEyez02.

dude, thank you SO much for being so helpful & hangin' in there with me on this. i'm really trying to wrap my brain around this, but i'm still not quite "getting it".

i understand the difference between a "site root" & "document" link. so it does seem this issue is because of how i have my directories setup, huh.

so, if it really comes down to those 2 choices to fix this, which would you recommend?

new question: should i just point my testing server directory to the same as my site directory?  a friend had me tick off the testing server box along with the remote server box for a while to get things built. it seemed to work (tho was annoying at how long i had to wait for DW between each save/open). i guess i'm not exactly sure what DW is doing when i check a page in the browser and have a testing server on. how would that be different than just uploading via remote server & going to the url to test?

or, would it make a difference to tell the testing server to go to the MAMP folder like the tutorial says to do?

just for kicks, to see what would happen, i went ahead and changed the Local Info links relative to settings from Site Root to Document. after doing that, i turned on the testing server (without changing anything there), and i now get a NEW message (screenshot below). ugh.

more thoughts/instruction would be greatly appreciated.

THANKS.

Screen Shot 2012-02-23 at 4.31.12 pm.png

to try and be proactive, i went ahead and changed my MAMP setting to use the suggested /Applications/MAMP/htdocs folder, and then changed the DW testing server settings accordingly. no change. if i have the local info links set to "site root" i get the first error message, if i have it set to "document" i get this new error message.

i'm SO confused. either these messages aren't worded very well, or i'm just stupid 😞

*** NEW INFORMATION ***

okay, so i decided to go (again) step-by-step thru the tutorial for setting up MAMP and setting DW's settings to use it. but this time, instead of using the Lynda.com tuut, i use the one @ http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html

THEY said it IS better to have just one location for your site & your testing server directories! so, i created a brand new site setting in DW and followed their instructions, and IT SEEMS TO BE WORKING WITHOUT ANY OF THESE ERRORS NOW!!!

OMG - i can't believe this.

i "was" wondering how the MAMP thing worked with regards to copying files to test etc. i didn't like the idea of it having duplicate versions stored elsewhere on my system.

my ONLY concern now is to just fully understand how this works and to know if there is anything bad that could happen by having them use the same directory.

do you have any thoughts on that?

thanks again for all your help. i would not have done this if it weren't for your most recent post.

you rock!

Message was edited by: SyberKnight

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines