Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 07:55:36 AM

Pages: [1]   Go Down
  Print  
Author Topic: Need to Redirect My URL  (Read 463 times)
tonina
Pong! (the videogame) Master
*****
Offline Offline

Posts: 21


« on: May 08, 2003, 05:10:59 AM »

I'm using movable type on my system and need to have it so that when people type in my url of www.smootherthanbutter.com they are automatically redirected to the main page of mt where my blog will be at www.smootherthanbutter.com/mt. How do I do this, the redirect in cpanel is not working for me. Thanks!
Logged
stephan
Guest
« Reply #1 on: May 08, 2003, 05:22:59 AM »

Hi,

That is similar to what happens on this website.

www.lunarforums.com redirects to www.lunarforums.com/forum

If you go to view and source, you will see how this is done.

It's done using frames.
Logged
tonina
Pong! (the videogame) Master
*****
Offline Offline

Posts: 21


« Reply #2 on: May 08, 2003, 05:25:16 AM »

I'm new to this but when I go to view and then source I don't see anything. What exactly am I supposed to do and what am I looking for? Thanks.
Logged
tonina
Pong! (the videogame) Master
*****
Offline Offline

Posts: 21


« Reply #3 on: May 08, 2003, 06:21:10 AM »

So nobody can tell me how to do this?
Logged
stephan
Guest
« Reply #4 on: May 08, 2003, 06:26:15 AM »

Save that as index.html and put it into your public_html directory.

Code:

<HTML>
<HEAD>
<TITLE>Your page title</TITLE>
</HEAD>

<FRAMESET rows="100%,*" frameborder=no border=0 framespacing=0>
  <FRAME SRC="http://www.http://www.smootherthanbutter.com/mt" NAME="anything" MARGINWIDTH=0 MARGINHEIGHT=0
SCROLLING=AUTO
target="_TOP">
</FRAMESET>
</HTML>
Logged
tonina
Pong! (the videogame) Master
*****
Offline Offline

Posts: 21


« Reply #5 on: May 08, 2003, 06:56:59 AM »

Ok, I saved it as an index.html and placed it within my public_html directory but when I go to www.smootherthanbutter.com it still fails to redirect to my blog. What am I doing wrong?
Logged
tonina
Pong! (the videogame) Master
*****
Offline Offline

Posts: 21


« Reply #6 on: May 08, 2003, 06:57:36 AM »

Got it! Thanks, made an error! Thank you for the help!
Logged
Martijn
Intergalactic Superstar
*****
Offline Offline

Posts: 180


WWW
« Reply #7 on: May 08, 2003, 09:11:14 AM »

An even better way would be creating a file index.php with the following content:

Code:
<?php

header
&#40;"Location&#58; http&#58;//www.smootherthanbutter.com/mt/"&#41;;

?>


Make sure you remove index.html, because the webserver might use it as default document instead of the index.php. You can first name it test.php and test it by going to http://www.smootherthanbutter.com/test.php
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: