Shoutbox

Redirecting Url - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Redirecting Url (/showthread.php?tid=37739)

Redirecting Url by John Anderton on 01-31-2005 at 06:51 AM

I just changed the url of my forums as the name of my forums was already taken. So can someone make me a simple redirect page. I mean if someone would type the name of my old forum address they should be redirected to my new forums.
For that u'll probably need the address for my forums rite. Should I post it.
Here it is.
Old Address http://sciontech.freefronthost.com
New Address http://www.krizon.freefronthost.com
Thanks once again :D
EDIT: Some ppl might not have selected the index.php in the main folder and bookmarked it. Mabbe they bookmarked the user cp page or something. Is there any thing that can be done about that ??
I just made a blank page with the text that "the forum has changed its address to ......." and then the link. If u can then just make this page display if anything ahead of http://sciontech.freefronthost.com is typed. Is that possible. But the best thing would be the direct redirection of any page to the new address. Also i just got an idea that if the user has linked any other page except the index page then a Error 404 will be shown. So i can make one with that link. Whats the extension for that ? (html of php)


RE: Redirecting Url by L. Coyote on 01-31-2005 at 06:58 AM

If you can still host files in that other web, you can put an index.htm file with:

<meta http-equiv="refresh" content="0;URL=http://www.krizon.freefronthost.com/" />

Edit: if you can't host/change files there anymore, there's no way it can be redirected.


RE: Redirecting Url by John Anderton on 01-31-2005 at 07:05 AM

Ok i made a index.html with frontpage and now i'm adding that line. Thanks for that leo. Also can i do something if the user had bookmarked a different page (other than the index page, mentioned in edit above)
EDIT: I'm using frontpage and when ever i try to paste what leo gave it shows this
I post >

code:
<meta http-equiv="refresh" content="0;URL=http://www.krizon.freefronthost.com/" />
It shows>
code:
<!--StartFragment -->
<font face="verdana,tahoma,arial,helvetica" size="2">meta http-equiv="refresh" content="0;URL=http://www.krizon.freefronthost.com/" /</font>
Should i use notepad instead. And where shoud this code be. Body, or head
I have attatched the index.html. If u have the time can u do it or just post the answer and i'll do it.
Thanks
quote:
Originally posted by Leo
if you can't host/change files there anymore, there's no way it can be redirected.
I can still use that url cause i have it. I had to change it since a company of that name existed. So i thought of a new name and googled it. So i guess its safe to use the new name :)

EDIT 2:
quote:
Originally posted by Demandred
isnt this Spam?
Huh ??:S I dont know how to do something and i am asking for help. How that spam ???
RE: Redirecting Url by WDZ on 01-31-2005 at 07:34 AM

quote:
Originally posted by John Anderton
<font face="verdana,tahoma,arial,helvetica" size="2">meta http-equiv="refresh" content="0;URL=http://www.krizon.freefronthost.com/" /</font>
:dodgy:

Just use Notepad and place the <meta> code in the <head> section. It doesn't have to be anything fancy...
code:
<html>
<head>
<title>Redirect</title>
<meta http-equiv="refresh" content="0;URL=http://www.krizon.freefronthost.com/" />
</head>
<body>
Redirecting to new URL...
</body>
</html>
quote:
Originally posted by John Anderton
Also can i do something if the user had bookmarked a different page (other than the index page, mentioned in edit above)
Are you allowed to use .htaccess files on this host? If so, place the following line in the file (if it doesn't exist, create it)...
code:
RedirectPermanent / http://www.krizon.freefronthost.com/
That should redirect any request for any page to the new URL.
RE: Redirecting Url by John Anderton on 01-31-2005 at 07:41 AM

Thanks i made the page. Also the main page of the url shows /index.php at the end unlike this forum so thats a php and this is this is a html so neprobs ?
What will be the change in codes it i had to use it as a php ?

quote:
Originally posted by WDZ
Are you allowed to use .htaccess files on this host? If so, place the following line in the file (if it doesn't exist, create it)...
No not allowed. So should i use my error 404 idea. How does that work ?
RE: Redirecting Url by Ezra on 01-31-2005 at 11:32 AM

Error 404 works with a .htacces also.


RE: Redirecting Url by segosa on 01-31-2005 at 01:59 PM

No, you can't do it then if you can't edit the .htaccess. Just create the index.html page and hope people are smart enough (!) to try the main page.


RE: Redirecting Url by John Anderton on 01-31-2005 at 02:04 PM

Ok but my host gives me an option to have a personal error 404 page


RE: Redirecting Url by WDZ on 01-31-2005 at 02:46 PM

quote:
Originally posted by John Anderton
Ok but my host gives me an option to have a personal error 404 page
Oh, set up via a control panel? That might work. (y)

quote:
Originally posted by John Anderton
Thanks i made the page. Also the main page of the url shows /index.php at the end unlike this forum so thats a php and this is this is a html so neprobs ?
Well, as long as people don't specifically request a php file, you should be fine. In other words, if they just go to http://sciontech.freefronthost.com/.

Of course, you could always rename that .html file to .php, and even make multiple copies of it with different names to replace all the .php files that people might have bookmarked.
RE: Redirecting Url by John Anderton on 01-31-2005 at 04:26 PM

quote:
Originally posted by WDZ
Well, as long as people don't specifically request a php file, you should be fine. In other words, if they just go to http://sciontech.freefronthost.com/.

Of course, you could always rename that .html file to .php, and even make multiple copies of it with different names to replace all the .php files that people might have bookmarked.
So u mean like index.htm, index.php, usercp.php etc. Thanks. Also is there no code changes reqd. in the one you gave. Thats html so if i rename it to php still will it work ??? I'm assuming yes cause WDZ said so :)
Thanks Wdz (Y)

RE: Redirecting Url by WDZ on 01-31-2005 at 04:33 PM

quote:
Originally posted by John Anderton
Thats html so if i rename it to php still will it work ???
Yes it will, because PHP files are assumed to be HTML until you enter PHP mode with <? or <?php.
RE: Redirecting Url by matty on 02-01-2005 at 12:09 AM

Use Javascript...

code:
<script>
     window.location = "http://www.krizon.freefronthost.com";
<script>