Redirect Help

All about creating websites!
Post Reply
User avatar
sherlock
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 109
Joined: 12 Jun 2007, 16:00
16
Location: sydney

Redirect Help

Post by sherlock »

hey

well i had a domain name and wanted another domain name so i bought it. Well the problem now is that the domain wont let me redirect it to another folder because i have to pay to do that. Now both of my domain names are directed to the same root.

So any tricks if u guys know of for redirection?

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

you can put this code into the index.html (no body-tags needed), it displays the site you want to redirect to in a fullscreen frame.

Code: Select all

<FRAMESET border=0 rows="100%,*" frameborder="no" marginleft=0 margintop=0 marginright=0 marginbottom=0>
<frame src="http://www.URL-to-redirect.to" scrolling=auto frameborder="no" border=0 noresize>
<frame  topmargin="0" marginwidth=0 scrolling=no marginheight=0 frameborder="no" border=0 noresize>
</FRAMESET>

User avatar
sherlock
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 109
Joined: 12 Jun 2007, 16:00
16
Location: sydney

yeah....

Post by sherlock »

Hey...but it will redirect whole 2 domain names....to that link

wont it?

i need some code if avaible that will only redirect my second domain to a specific folder.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

you can redirect by using an .htaccess file too, the syntax is:

Code: Select all

Redirect http://oldsite.com/ http://yoursite.com/index.html
:wink:

User avatar
sherlock
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 109
Joined: 12 Jun 2007, 16:00
16
Location: sydney

Hmm

Post by sherlock »

It didnt work man..any ideas

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

This is something Gogeta gave me a while ago that i still use all the time ^^

Works great

Code: Select all

http://justbgeek.com/text.txt

i hate this html filter -.-

seriously whats the use of "Disable HTML in this post" ?! >_<
"The best place to hide a tree, is in a forest"

User avatar
DJ_FlawLess
forum buddy
forum buddy
Posts: 12
Joined: 11 May 2007, 16:00
16

Post by DJ_FlawLess »

Use PHP or Java to grab the domain then send each domain to a different place?

User avatar
sherlock
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 109
Joined: 12 Jun 2007, 16:00
16
Location: sydney

yeah

Post by sherlock »

and how would i do that bro. you got any codes.. lol

User avatar
sherlock
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 109
Joined: 12 Jun 2007, 16:00
16
Location: sydney

Hey

Post by sherlock »

Hey finnally i found something that worked

here is what i did

in the .htaccess file i added this code

Code: Select all

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?site2\.com [NC]
RewriteRule !^jokes/.*$ /jokes%{REQUEST_URI} [L]
and now whenevr somebody enters my second sites...it takes them to the folder jokes and it works the same way as domain redirect provided by most of the host. My host sucks, Do you guys think if they find out about this they will suspend my account? because they charge 99$ for domain redirection

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

nope...htaccess files are not illegal, and actually your site is still hosted there (even if it's just a single htaccess file). if they would complain about it they would also have to ban the use of links to other sites (which is also a form of redirection).... :wink:

User avatar
sherlock
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 109
Joined: 12 Jun 2007, 16:00
16
Location: sydney

yeah

Post by sherlock »

Yeah they never mentioned it in the rules lol .

Post Reply