View Full Version : redirecting a url
ukmodders
10-01-2006, 12:35 PM
how do i redirect a url to my mainsite
i.e from my index page to my joomla index page
What script you are using? Is it a forum? or normal site?
ukmodders
10-01-2006, 08:37 PM
What script you are using? Is it a forum? or normal site?
guru ive added you to msn
ukmodders
ukmodders
10-05-2006, 12:08 AM
theres no scripting and what i want to do is when people goto my site which is http://ukmodders.ulmb.com i want it to automatically direct them to http://ukmodders.ulmb.com/Joomla/index.php
can anyone tell me howto do this please
cheers uk modders
Tyler
10-05-2006, 12:19 AM
Make an HTML page called index.html and put it in the main directory (not in your joomla directory) and put this above the <title><title/>
<meta http-equiv="refresh" content="2;url=http://ukmoders.ulmb.com/Joomla/index.php">
You may want to add a link on the main page that says Your being redirected to "Your Site" click here if you are not automatically redirected.
Or something like that
ukmodders
10-05-2006, 12:34 AM
what do you mean by the <title><title/>
ukmodders
Tyler
10-05-2006, 12:41 AM
On an HTML page when you make an HTML document you put in a line that says <title></title> in the middle having your title.... just copy the code below and put it into a new file called index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="refresh" content="2;url=http://ukmoders.ulmb.com/Joomla/index.php">
<title>Redirecting....</title>
</head>
<body>
<p>You are being redirected to the correct URL.</p>
<p>If you are not automatically redirected please click <a href="http://ukmodders.ulmb.com/Joomla/index.php">HERE</a>. </p>
</body>
</html>
cr0wonline
10-05-2006, 01:29 AM
Tyler, wouldn't it be better to use a PHP redirect? ;)
<?php header("Location: http://ukmoders.ulmb.com/Joomla/index.php"); ?>
Put that at the very top of the index file, above the <html> tag. :)
Tyler
10-05-2006, 04:08 AM
That would work also.
arenlor
10-05-2006, 04:14 AM
Or you could do both of them too. Just incase.
ukmodders
10-07-2006, 05:03 PM
On an HTML page when you make an HTML document you put in a line that says <title></title> in the middle having your title.... just copy the code below and put it into a new file called index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="refresh" content="2;url=http://ukmoders.ulmb.com/Joomla/index.php">
<title>Redirecting....</title>
</head>
<body>
<p>You are being redirected to the correct URL.</p>
<p>If you are not automatically redirected please click <a href="http://ukmodders.ulmb.com/Joomla/index.php">HERE</a>. </p>
</body>
</html>
shall i just copy all that into a html document
UnlimitedMB
10-07-2006, 05:04 PM
Yes .
ukmodders
10-07-2006, 08:30 PM
Yes .
you couldnt do an example in a html document for me could you as ive tried this many of times and it doesnt work:confused:
ukmodders
millar
10-08-2006, 09:44 AM
Header redirect is most effective, it is also search engine friendly..
UnlimitedMB
10-08-2006, 06:12 PM
you couldnt do an example in a html document for me could you as ive tried this many of times and it doesnt work:confused:
ukmodders
If that code does not work there is something wrong with your browser configuration.
I would suggest reset your default settings.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.