Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Ampersand in web page

Posted on 2005-03-04
4
Medium Priority
?
264 Views
Last Modified: 2013-11-19
Hi,

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.

Bs40
0
Comment
Question by:bs40
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
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.

0
 

Author Comment

by:bs40
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.
0
 

Expert Comment

by:sutejok
ID: 13473344
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

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

Author Comment

by:bs40
ID: 13512772
I renamed the pages. Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

581 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