I need to know how to redirect a URL

User 214569 Photo


Registered User
17 posts

I've done it before a long time ago, but can't remember how. I have a website and need to get one of my html pages to have a link directly to it rather than using my main domain name with the .html page tagged on the end of it.

I know it wouldn't be like www.mydomain.com, but rather something like - www.otherdomain.ir or something like that.

Any ideas?
User 355448 Photo


Ambassador
3,144 posts

David,

It sounds like you want a second domain. For that, you need to contact your hosting company. Check your package with your host to see what is already provided. With my host, I can add many domains without changing my package, and in the control interface provided, I can set the new domain to point to the correct index page.

If I have misunderstood the question, please let me know.
User 244141 Photo


Ambassador
1,209 posts

To add to what Bill said, it sounds like you want to "frame" the page. For instance, if I want to have a page called: hxxp://mysite.com/search_engine.html that would have my url and meta tags, but showing a Yahoo.com page, I can do something like:


<html>
<head>
<title>My Site</title>
<head>
<meta name="description" content="this is an example description of this page">
<meta name="keywords" content="yahoo, coffeecup, visual site design, coffee">
<meta name="copyright" content="My site copyright 2009">
<meta name="author" content="Rod the copy-paste king">
<meta name="email" content="rod@don't_email_me.com">
</head>
</head>

<body>
<div align="center">
<iframe src="http://www.yahoo.com" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"

height="1000" width="850"></iframe>
</div>

</body>
</html>



1and1 and probably other companies allow you to do this from your domain control pannel. It's called(by 1and1)"forwarding" the domain. You forward it to the any web address, enter your meta keywords and description, and it will show your web address on the browser[hxxp://mysite.com/search_engine.html],but will display their page.

If I was redirecting so their page[hxxp://otherpage.ir] page would show up on the browser bar when they clicked on a link[the link is to hxxp://mysite.com/my_bad_page.html] on my site, that's redirecting the url and there are several ways of doing this. I wasn't for sure which one you were looking for.

I hope that makes the water less muddy and not more. :)
Web Design: https://www.websnoogie.com
Member - BBB: Websnoogie, LLC







Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.