PDA

View Full Version : creting a redirection



mazzako
04-08-2007, 10:02 PM
i am new to blue host so any one can tell me how to redirect a site

like i have a site in www.mysitename.com/index > now when people enter www.mysitename.com it should go to ww.mysitename.com/index

do any one know any easy way help me out


New user donnno know anything :eek: :eek: :confused: :

skwiecinski
04-08-2007, 10:08 PM
It doesn't sound like you need to redirect the site, but you are just trying to set up an index page.

There are three types of index pages that you can use.

index.html
index.php
index.htm

When someone goes to www.yoursite.com it will look for those pages, in order. If you have all three, then the first one will take precedence.

Hope that helps.

mazzako
04-08-2007, 10:21 PM
i think you dont get what i am saying i installed smf forum in www.mystiename.com/forum

so now when people enter my site i want then they directly come in www.mysite.com/forum

skwiecinski
04-08-2007, 10:50 PM
Sorry, I did misunderstand.

The easiest way that I would do would be to add this to your .htaccess.



<Files ~ ^index.html$>
RedirectMatch permanent ^/index.html$ http://www.yourdomain.com/forum/
</Files>


There are other ways to do it, but I do feel that this is the easiest way... Of course, other people may have another opinion.

charlesgan
04-08-2007, 11:05 PM
create a php file and paste in these code.

<?php header("Location: http://www.example.com/"); ?>

mazzako
04-08-2007, 11:33 PM
maybe this seems funny to u but i dont know where is htacess or something like that

skwiecinski
04-08-2007, 11:52 PM
Even easier...

Go to your control panel.

Click on Redirects under Web Server Config.

Add index.html in the first box, then put the address where you want to redirect to in the second box.

Change to permanent in the drop down box.

Click on add.

silentcollision
04-09-2007, 12:16 AM
Ok, you guys are making this way too confusing. If someone doesn't know how to redirect, chances are they're not going to know what .htaccess is, right? Charlesgan got it perfectly, with the best answer.

Create a new file, name it index.php. Put in the code that he said, and that will work. Except change example.com to /forum.

Problem solved.

(Oh, redirects under the control panel would also work, but the php header is probably easier).

charlesgan
04-09-2007, 05:56 AM
Ok, you guys are making this way too confusing. If someone doesn't know how to redirect, chances are they're not going to know what .htaccess is, right? Charlesgan got it perfectly, with the best answer.

Create a new file, name it index.php. Put in the code that he said, and that will work. Except change example.com to /forum.

Problem solved.

(Oh, redirects under the control panel would also work, but the php header is probably easier).

:D 10s...
i use control panel last time, but found that php header is much easier to use. also easier to backup. so i stick to this until now.

mazzako
04-10-2007, 04:09 PM
nopw other is much easier for some one like me , just go to cp and click on redirects in Web Server Config then eaily create an redirection very easy

Slapping Penguins
04-11-2007, 07:13 PM
There are so many possible ways to redirect in practically every 'web language'.

In HTML you can add a meta tag to your index page also.

Jim
04-12-2007, 01:47 PM
http://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&id=409


This will take you to the helpdesk article for making a HTACCESS mod rewrite redirect.
It explains things Very well. And I use for bluehost customers all the time. Hardly ever any complaints on it.