Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

redirect code needed

Status
Not open for further replies.

nicorlino

I BUY TRAFFIC NAMES!
Legacy Exclusive Member
Joined
Aug 23, 2002
Messages
985
Reaction score
0
hi ya'll,
i don't know any html, could somebody please post some code so i can put a index.html file into the www.something.com directory that will redirect the user to www.something.com/forum?
best regards and thanks a lot in advance
nico
 

DeCal

DNF Addict
Legacy Exclusive Member
Joined
Dec 21, 2002
Messages
1,481
Reaction score
0
Put this in the head tag!


<script language="JavaScript">document.location.href="http://www.site.com/forum"</script>


Hope it helps!
 

nicorlino

I BUY TRAFFIC NAMES!
Legacy Exclusive Member
Joined
Aug 23, 2002
Messages
985
Reaction score
0
thanks a lot decal, problem has been resolved, mods can close this thread!
best regards
nico
 

WebCat

Level 7
Legacy Exclusive Member
Joined
Mar 9, 2003
Messages
913
Reaction score
0
Uh....... wouldn't this be better done at the dns level?

It seems that relying on javascript to redirect would create problems when people surf with javascript deactivated.
 

nicorlino

I BUY TRAFFIC NAMES!
Legacy Exclusive Member
Joined
Aug 23, 2002
Messages
985
Reaction score
0
any ideas webcat?
best regards
nico
 

Spider

Level 8
Legacy Platinum Member
Joined
Apr 9, 2003
Messages
1,578
Reaction score
0
You could just use an .htaccess file as well to redirect.
 

nicorlino

I BUY TRAFFIC NAMES!
Legacy Exclusive Member
Joined
Aug 23, 2002
Messages
985
Reaction score
0
how does that work?
i am not all that technical!
best regards
nico
 

Spider

Level 8
Legacy Platinum Member
Joined
Apr 9, 2003
Messages
1,578
Reaction score
0
Create a file called .htaccess and put this in the root of wherever your index file would be. On the top line use.

Redirect /index.html http://somewhere.com/forum.php

Of course you change index to whatever you are redirecting and the other portion to where you want it to go.
 

DeCal

DNF Addict
Legacy Exclusive Member
Joined
Dec 21, 2002
Messages
1,481
Reaction score
0
the problem with re directs like this is that it isn't good if your optimising you site for search engines.
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
You can also try this redirect. It will allow for meta tags...
<html>
<head>
<title>something.com</title>
<meta http-equiv="refresh" content="0;url=http://www.something.com/forum/">
</head>



</html>
 

nicorlino

I BUY TRAFFIC NAMES!
Legacy Exclusive Member
Joined
Aug 23, 2002
Messages
985
Reaction score
0
thanks to all for your help!
best regards
nico
 

Anthony Ng

@Nameslave
Legacy Exclusive Member
Joined
May 22, 2002
Messages
4,567
Reaction score
14
Yes, I would recommend using a .htaccess file for this. It is quick in loading (unlike the refresh metatag) and good even for people who disable Javascript (although frankly these people can't really go far). Actually, EVERY hosted domain should have such a file in its root for better site management e.g. a custom 404 error, etc.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 3) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom