Solved

URL not found when I don't  type in HTML at the end

Posted on 2007-12-03
7
163 Views
Last Modified: 2010-04-21
I had to give URL to our magazine editor to have printed in our magazine.  I accidentally left out the .html so that the reader types that in when going to the link.  Is there a way to code in the background so the user does not have to type in the .html?  Example:  www.example.org/writers.
Since this isn't a link on a webpage, they are typing it in from a magazine, I'm not sure I can do anything about it, but if I can, I would sure be extremely grateful for any help anyone can provide!
Thanks,
LIsa
0
Comment
Question by:lisafamf
  • 4
  • 2
7 Comments
 
LVL 16

Accepted Solution

by:
Wadski earned 500 total points
Comment Utility
Should be as simple as creating a folder called writers within the website root folder and putting index.html in there with the following code to redirect:
<html>

<head>

</head>

<body>

<meta http-equiv="refresh" content="0;url=http://www.example.com" />

</body>

</html>

Open in new window

0
 
LVL 16

Expert Comment

by:Wadski
Comment Utility
Sorry the URL in the code should be: www.example.com/writers.html
0
 
LVL 13

Expert Comment

by:R7AF
Comment Utility
Even better, you can move the original file to that location. No redirect needed.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

by:Wadski
Comment Utility
If you move the page you will have to potentially update all the links of the website to match the redirected page.

If you create a redirect as described you can quite easily add some page monitoring code to the and be able to report back to your boss on how many people have visited your site from the magazine publication.
0
 

Author Closing Comment

by:lisafamf
Comment Utility
Thank you, thank you, thank you!!!!  Worked perfectly.  I am very grateful!
Lisa
0
 

Author Comment

by:lisafamf
Comment Utility
How do I give you points? or did that happen already with  my acceptance of your answer?
Sorry be being so dense!
Lisa
0
 
LVL 16

Expert Comment

by:Wadski
Comment Utility
It already happened.  

The site calculated it from your mark and the points on offer.  So 500 points and an A grade = 2,000 Expert points.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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)

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now