Get site to go to forum automatically [SOLVED]

Support for IntegraMOD 140

Moderator: Integra Moderator

Get site to go to forum automatically [SOLVED]

PostAuthor: macarlisle » Thu May 04, 2006 11:17 am

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?
Last edited by macarlisle on Fri May 05, 2006 7:36 am, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

Re: Get site to go to forum automatically

PostAuthor: Dragonsys » Thu May 04, 2006 11:24 am

I'm not sure what you are meaning... you want the main page to load the forums instead of the portal?
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: macarlisle » Thu May 04, 2006 11:28 am

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
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: Master Dwarf » Thu May 04, 2006 12:01 pm

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.
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

PostAuthor: macarlisle » Thu May 04, 2006 1:13 pm

is still isnt redirecting. had to go back in and change the index file. to redirect.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: Master Dwarf » Thu May 04, 2006 1:28 pm

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
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

Re: Get site to go to forum automatically

PostAuthor: macarlisle » Thu May 04, 2006 2:24 pm

This is what I get


[flash=,:32rqilu3]http://www.westtexaschitchat.com/Untitled-1.jpg[/flash:32rqilu3]
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

Re: Get site to go to forum automatically

PostAuthor: Nata » Thu May 04, 2006 3:51 pm

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]
Last edited by Nata on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Nata
Translation Team
Translation Team
 
Posts: 83
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 10:14 pm
Cash on hand: 0.00

Re: Get site to go to forum automatically

PostAuthor: Helter » Thu May 04, 2006 4:11 pm

"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>
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: Nata » Thu May 04, 2006 4:30 pm

it was you who posted that ??
Last edited by Nata on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Nata
Translation Team
Translation Team
 
Posts: 83
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 10:14 pm
Cash on hand: 0.00

Re: Get site to go to forum automatically

PostAuthor: Helter » Thu May 04, 2006 4:40 pm

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.
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: macarlisle » Thu May 04, 2006 4:43 pm

I will probably just stick with the code in the index file.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

Re: Get site to go to forum automatically

PostAuthor: Master Dwarf » Thu May 04, 2006 6:37 pm

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.
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

PostAuthor: macarlisle » Thu May 04, 2006 7:00 pm

I think that one of the issues is that I am running frontpage.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

Re: Get site to go to forum automatically

PostAuthor: Dragonsys » Fri May 05, 2006 5:44 am

"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
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Dragonsys » Fri May 05, 2006 5:45 am

"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.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: macarlisle » Fri May 05, 2006 5:52 am

It is saying that i must give it a file type.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

Re: Get site to go to forum automatically

PostAuthor: Dragonsys » Fri May 05, 2006 6:10 am

Yeah, that's a problem with Frontpage.
Can you log into your FTP account (using an FTP client, not Frontpage) and change it there?
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: macarlisle » Fri May 05, 2006 6:23 am

my service just went down. <img>
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: macarlisle » Fri May 05, 2006 6:31 am

that file made my server go to an error page. What the heck.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: macarlisle » Fri May 05, 2006 6:37 am

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]
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: Master Dwarf » Fri May 05, 2006 6:42 am

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.
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

PostAuthor: macarlisle » Fri May 05, 2006 6:44 am

yes, that is what I had. I may try it agian later
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: Master Dwarf » Fri May 05, 2006 6:47 am

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>
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

PostAuthor: macarlisle » Fri May 05, 2006 6:50 am

yeah they do, it stats that if you are not running fp you can. If you are running frontpage you cant.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: Master Dwarf » Fri May 05, 2006 7:00 am

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.
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

PostAuthor: macarlisle » Fri May 05, 2006 7:33 am

Looks like that did it. Thanks guys for your help.
Last edited by macarlisle on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
macarlisle
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 11, 2006 7:16 am
Cash on hand: 0.00

PostAuthor: Master Dwarf » Fri May 05, 2006 7:36 am

I think a [Solved] in the topic is warranted. <img>
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]