Why do I have a % sign in my website links?

http://www.shanestover.com/Dustin%20Music/adenjamesrecordings.htm

Here is a good example.

I’m using Dreamweaver 3, and I’m not sure how they got there? Can I get rid of them somehow? Probably not without re uploading everything I suppose?

Does it really even matter if they’re there, other than the annoyance, and the fact that it looks crappy?

Actually, it’s %20 that’s somehow stuck right in there.

%20 is the URL escape code for a space.

i.e. /hello there.html would be /hello%20there.html

It’s an encoding format… in this case, encoding a space. Spaces are not legal characters in strict URL (link) format, although a lot of browsers automatically translate them now. The proper way to represent a filename with a space in it is through the use of %20, because 20 is the hex ascii code for a space (32 in decimal notation.)

dreamweaver 3 is probably making everything tight automatically, which is actually good. Can you change the filename so it doesn’t have a space?

You can’t have a space in a URL, so Dreamweaver is replacing the space with a %20 which is the URL encoded character for space.

To get rid of them, you need to change the name of your folder “Dustin Music” to something that, basically, follows the rules such as:

Dustin_Music
Dustin-Music
DustinMusic

IE will let you get to http://www.shanestover.com/Dustin Music/adenjamesrecordings.htm (by replacing the space for you) but I don’t think most other browsers will.

Here’s some more info on URL Encoding

Got it… Thank you guys much…

the actual name of the folder that all those files are in are labeled “Dustin Music”

If I rename it DustinMusic, will I need to strip all the files off the remote server and reload them?

If so, that’s fine, just gonna have to find some free time to do so is all, and will wait…

Better still, use a naming convention where all directories, files, etc., are lowercase, no spaces, no underscores, and if you must, use hyphens.

Why? Think of your web users. Many web servers use operating systems that are case-sensitive. If you establish a single standard you reduce the chances that a potential visitor will screw up the URL you provide to them.

Example #1 (Non-existent URL) - [http://www.somewebsite.com/directory/file name.html](http://www.somewebsite.com/directory/file name.html) - Space or underscore?

Example #2 (Non-existent URL) [http://www.somewebsite.com/directory/file_name.html](http://www.somewebsite.com/directory/ file_name.html) - Space or underscore?

Believe it or not, many people cannot see the difference (probably similar where many cannot see the difference between film and videotape on television).

So you have a directory called DustinMusic . Make it dustin-music. Why? If your site in on a case-sensitive server, a user must enter the URL exactly as you created it, or it will fail. Ah, no worries they need only cut and paste you say. Well, many still haven’t figure that out and will retype the URL from that email you sent them.

Make it easy for them. Kill all uppercase. No underscores.

No. I have never worked with dreamweaver so I am not quite sure how it works…

In a “basic” web editing setting you would just rename the folder on the server via your FTP client and rename it on your local copy of the site. And then go through all of your pages that have links to /Dustin Music/whatever.html and change that to /DustinMusic/whatever.html then re-upload the files you changed.

With Dreamweaver, I’m pretty sure that if you rename your folder in your “project” to DustinMusic it’ll say “we’re gonna change all the references of Dustin Music to DustinMusic. Is that ok?” and you say OK and it searches all the pages for you and changes the references, then you “publish” your project and Dreamweaver will sync everything up for you.

Correct.

However, when you upload your files (via Dreamweaver’s FTP client), the old directory is still on the server.