close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

link problem

Thread began 7/01/2009 11:11 am by muddysmurf | Last modified 7/02/2009 9:11 am by muddysmurf | 3623 views | 9 replies |

muddysmurf

link problem

This has probably been covered before, but here goes:

I've linked all of my links in the nav bar to go to separate pages inside the folder locally. For example, my Directions tab goes to directions.php.

Menu writer adds a / in front which makes it /directions.php. This works locally when I try to go to different pages.

I get the site online, and when I click on the directions tab, it tries to take me to mydomain.com/mysitefolder/directions.php and not mydomain.com/directions.php

I don't want to take out code that says assumed root, so how do I fix this without having to change the navigation every time I make changes locally and then put it live?

Much Appreciated,
Leslie

Sign in to reply to this post

Ray BorduinWebAssist

It should check to make sure the folder exists first... does /mysitefolder/ exist on your live server?

The assumed root takes a local root and remote root argument that are set in the top of the code based on your site definition. There is no way for it to really know if you are on one server or the other, so it tests to see if the folder exists if it doesn't it uses the other path. You may be able to switch the local and remote root values or remove or rename that folder if it isn't needed.

Sign in to reply to this post
Did this help? Tips are appreciated...

muddysmurf

the mysitefolder doesn't exist live, because the folder that the entire website is in locally is called mysitefolder.

I don't need that folder once I upload it live.

All of my pages are hanging out in the public_html folder, live.

www.sayre-speedway.com is the link

Sign in to reply to this post

xag

your site isn't live

Sign in to reply to this post

muddysmurf

Originally Said By: xag
  your site isn't live  



that's what I get for talking on the phone and typing, added an s that wasn't there.

www.sayre-speedway.com

Sign in to reply to this post

muddysmurf

I took out the "local" folder name at the top of the menu.php file. That seemed to work, but now every time I update the file using the edit content button, I am going to have to change it before I upload it :(

Wish there was a different way to do it.

Sign in to reply to this post

Ray BorduinWebAssist

It sounds like a bug or maybe a problem with your site settings... what were the settings for local and remote in that file before you changed them?

Sign in to reply to this post
Did this help? Tips are appreciated...

muddysmurf

local was the name of 'mysitefolder'

I don't have the file where i'm at right now so I can't look at the remote one, but I only touched the local.

Sign in to reply to this post

Ray BorduinWebAssist

I'd like to know the other. Maybe neither were correct. Although you fixed it by updating the local, the problem may have actually been in the remote.

Sign in to reply to this post
Did this help? Tips are appreciated...

muddysmurf

This is what it is now:
$WA_localRoot = "/";
$WA_remoteRoot = "/";

local did have "mysitefolder" before

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...