Ampersand in web page

Posted on 2005-03-04
Medium Priority
Last Modified: 2013-11-19

I recently moved the intranet site from one server to the new one, which is IIS 5.0 on windows 2000 platform. Some of the web pages' name had ampersand. For e.g. new_&_refresher.htm. On the old server it worked perfectly fine. However, on the new server, the hyperlink cannot find this page. It gives an error:

Page cannot be found.
Error 404

This page was done in Frontpage. It is accessed from the navigation bars.

Thank you in advance.

Question by:bs40
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 13

Accepted Solution

StormyWaters earned 500 total points
ID: 13464000
The ampersand is a reserved character and thus has a specifc use... specifying a variable=value pair in the querystring of a URI. So, you can't use it for your filenames. There's two things you can try:

1. URL encode the ampersand in your HTML pages. That is, whenever you have a link pointing to a file with an ampersand, replace the ampersand with %26
This may or may not work depending on if there is just a conflict browser-side or one on the serverside.
2. Rename your file. Simple.


Author Comment

ID: 13466697
I renamed a few pages and it worked. However, I do not want to rename all the pages.

I will try %26 on Monday. Thanks for the reply.

Expert Comment

ID: 13473344

you can check out this page. the encoding that you may be looking for is at the Code Points (Hex) column

Author Comment

ID: 13512772
I renamed the pages. Thanks.

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question