Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie redirect 1

Status
Not open for further replies.

dmacster

Technical User
Jan 28, 2005
670
US
Knowing that I know next to nothing about PHP, want to make sure I understand the possibilities.

Previous site had inconsistent naming conventions - some html page started uppercase, some did not.

Just finished redesign for client and used all lowercase. Client had previously been found on search engines and some of those pages (such as Utilities.html) - while now found load blank - because I used utilities.html I suppose.

How do I tell someone who clicks on the link for domainname.com/Utilities.html to end up at domainname.com/utilities.html?

I'll need to do this for about four of the inconsistent pages, if possible.

Thanks for the help. There's always so much to learn.

Donna
 
do a URL rewrite using .htaccess

Put a html refresh tag to the correct page.

or make a PHP page that does the redirect..

 
The client's site is hosted on Yahoo - couldn't find anything that allows me to place an htaccess file there - have had to do that before.

And, not sure how to make the PHP page - that's why 'm asking.

Thanks.
Donna
 
header("Location:
But you need it to be HTML. Use a HTML refresh

Utilities.html
<html>
<head>
<title>Utilities.html</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
<BODY>
You are being redirected.
</BODY>
</HTML>
 
Thanks, KingCrab. Was getting a bit confused by more info than I really needed in online documentation. A star to you!

Donna
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top