Page 1 of 1

Get site to go to forum automatically [SOLVED]

PostPosted: Thu May 04, 2006 11:17 am
Author: macarlisle
I currently have my site to redirect from the main index page. I do see the forums like this one that automatically goes to the forum instead of possing. What do I need to do?

Re: Get site to go to forum automatically

PostPosted: Thu May 04, 2006 11:24 am
Author: Dragonsys
I'm not sure what you are meaning... you want the main page to load the forums instead of the portal?

PostPosted: Thu May 04, 2006 11:28 am
Author: macarlisle
What i mean is, instead of the site going to http://www.westtexaschitchat.com/index I want it to go to http://www.westtexaschitchat.com/phpBB2/portal.php

PostPosted: Thu May 04, 2006 12:01 pm
Author: Master Dwarf
macarlisle-are you familiar with .htaccess files?

You may have to create one.

Here, I'll try to get you going with a simple redirect.

open notepad and paste the following:

Redirect /index.htm http://www.westtexaschitchat.com/phpBB2/portal.php

Options -Indexes

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www..* [NC]
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]


then save the document as .htaccess notice the inconventional file name. Then upload/ftp this file to your root directory of your site.

Basically the above file is saying, anything that looks for index.htm forward to yourdomain.com/portal/portal.php It also allows anyone that types just your domain name to rewrite it as www. yourdomainname.com. I hope this helps.

PostPosted: Thu May 04, 2006 1:13 pm
Author: macarlisle
is still isnt redirecting. had to go back in and change the index file. to redirect.

PostPosted: Thu May 04, 2006 1:28 pm
Author: Master Dwarf
macarlisle-webhosting companies sometimes have different default files set for when someone visits your domain. Some are index.htm, sometimes its index.html, and so on.

Does your webhosting company have a FAQ that may clarify this info? It may be a matter of just putting an 'L' on the end of htm in the .htaccess file I mentioned earlier.

So instead of index.htm it reads index.html

Re: Get site to go to forum automatically

PostPosted: Thu May 04, 2006 2:24 pm
Author: macarlisle
This is what I get


[flash=,:32rqilu3]http://www.westtexaschitchat.com/Untitled-1.jpg[/flash:32rqilu3]

Re: Get site to go to forum automatically

PostPosted: Thu May 04, 2006 3:51 pm
Author: Nata
hello there is another way easy simple and without use htaccess !

i found this solution in IM.com !

well all u have is to paste this code ina virgin file called index.htm and it will work !

this code is espcially for macarlisle but everybody can do it with changing the url of the index that we want to redirect for !
[code]<html>   <head>   <title>THE PAGE TITLE HERE</title> <META HTTP-EQUIV="Refresh"       CONTENT="0; URL=http]

Re: Get site to go to forum automatically

PostPosted: Thu May 04, 2006 4:11 pm
Author: Helter
"ilia";p="4607" wrote:hello there is another way easy simple and without use htaccess !

i found this solution in IM.com !

well all u have is to paste this code ina virgin file called index.htm and it will work !

this code is espcially for macarlisle but everybody can do it with changing the url of the index that we want to redirect for !
[code]<html>   <head>   <title>THE PAGE TITLE HERE</title> <META HTTP-EQUIV="Refresh"       CONTENT="0; URL=http]


That looks familiar <img>

PostPosted: Thu May 04, 2006 4:30 pm
Author: Nata
it was you who posted that ??

Re: Get site to go to forum automatically

PostPosted: Thu May 04, 2006 4:40 pm
Author: Helter
yes. I have a global overide on my servers that do not allow .htaccess. I have found through alot of research that .htaccess files have a huge impact on server speed if you have a large forum, many forums/sites, or use shared hosting that allows .htaccess.
If you add just 1 .htaccess file, your server will search every folder for additional .htaccess files on every page load.

PostPosted: Thu May 04, 2006 4:43 pm
Author: macarlisle
I will probably just stick with the code in the index file.

Re: Get site to go to forum automatically

PostPosted: Thu May 04, 2006 6:37 pm
Author: Master Dwarf
macarlisle-the index file is nice to use and I learned something new. Your .htaccess file does not work because it ends with a .txt file entension. It simply needs to be named .htaccess

I think I'll look into the index file way myself.

PostPosted: Thu May 04, 2006 7:00 pm
Author: macarlisle
I think that one of the issues is that I am running frontpage.

Re: Get site to go to forum automatically

PostPosted: Fri May 05, 2006 5:44 am
Author: Dragonsys
"ilia";p="4607" wrote:hello there is another way easy simple and without use htaccess !

i found this solution in IM.com !

well all u have is to paste this code ina virgin file called index.htm and it will work !

this code is espcially for macarlisle but everybody can do it with changing the url of the index that we want to redirect for !
[code]<html>   <head>   <title>THE PAGE TITLE HERE</title> <META HTTP-EQUIV="Refresh"       CONTENT="0; URL=http]


This is what he was already doing. But when using the meta refresh, there is a short delay. He was looking to make the redirect faster. Which is why he would need to use .htaccess

PostPosted: Fri May 05, 2006 5:45 am
Author: Dragonsys
"macarlisle";p="4655" wrote:I think that one of the issues is that I am running frontpage.


You just need to rename the file you created from .htaccess.txt to just .htaccess and reupload.

PostPosted: Fri May 05, 2006 5:52 am
Author: macarlisle
It is saying that i must give it a file type.

Re: Get site to go to forum automatically

PostPosted: Fri May 05, 2006 6:10 am
Author: Dragonsys
Yeah, that's a problem with Frontpage.
Can you log into your FTP account (using an FTP client, not Frontpage) and change it there?

PostPosted: Fri May 05, 2006 6:23 am
Author: macarlisle
my service just went down. <img>

PostPosted: Fri May 05, 2006 6:31 am
Author: macarlisle
that file made my server go to an error page. What the heck.

PostPosted: Fri May 05, 2006 6:37 am
Author: macarlisle
This is what I was usnig. It wouldnt let me log into my server as well.


Redirect /index.htm http://www.westtexaschitchat.com/phpBB2/portal.php

Options -Indexes

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www..* [NC]
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]

PostPosted: Fri May 05, 2006 6:42 am
Author: Master Dwarf
macarlisle- what is the name of that file? It MUST be
.htaccess
and nothing else. I am not sure frontpage will allow you to name it that. It is best to do it in notepad and then ftp the file up using a ftp client like SmartFtp.

PostPosted: Fri May 05, 2006 6:44 am
Author: macarlisle
yes, that is what I had. I may try it agian later

PostPosted: Fri May 05, 2006 6:47 am
Author: Master Dwarf
I guess it is possible that your hosting service does not support .htaccess. Do they have a FAQ section or support forums. Often times people have the same problem as you do and answers can be found there. Don't mean to brush you off here, but some hosting companies simply do things differently. <img>

PostPosted: Fri May 05, 2006 6:50 am
Author: macarlisle
yeah they do, it stats that if you are not running fp you can. If you are running frontpage you cant.

PostPosted: Fri May 05, 2006 7:00 am
Author: Master Dwarf
So if you are running FP then you are unable to use .htaccess. That makes sense. I don't think FP will allow it due to the unconventional file name. Still not sure why you are getting an error if you have an index.htm file in the root of your domain directory.

WAIT! the path to your website in your file. Try putting the whole thing in there:
Redirect /index.htm http://www.westtexaschitchat.com/phpBB2/portal.php

Options -Indexes

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www..* [NC]
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]


You're missing the http:// not sure if that makes a difference.

PostPosted: Fri May 05, 2006 7:33 am
Author: macarlisle
Looks like that did it. Thanks guys for your help.

PostPosted: Fri May 05, 2006 7:36 am
Author: Master Dwarf
I think a [Solved] in the topic is warranted. <img>