Go Back   Waloosh Web Development > Web Development > Forum Maintanence and Design

» Site Navigation
» Home
» Online Users: 5
0 members and 5 guests
No Members online
Most users ever online was 49, 02-27-2010 at 02:20 PM.
» Stats
Members: 14
Threads: 23
Posts: 45
Top Poster: TClaunch (24)
Welcome to our newest member, JavaScriptBank
Reply
 
LinkBack Thread Tools Display Modes
Old 02-02-2010, 01:55 AM   #1 (permalink)
Administrator
Points: 453, Level: 9 Points: 453, Level: 9 Points: 453, Level: 9
Activity: 99.9% Activity: 99.9% Activity: 99.9%
Last Achievements
 
TClaunch's Avatar
 
Join Date: Sep 2009
Location: Corpus Christi, TX
Posts: 24
Blog Entries: 1
Thanks: 0
Thanked 3 Times in 3 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default Redirection Issues

Ok, even though I just posted help for this on another forum I found my own answer.


I don't know if anybody has noticed the recent battle between "http://waloosh.com" and "http://www.waloosh.com".

You'd log in using the www prefix just to click on a link that took you to a page without the www prefix when you notice that you're not logged in anymore... I had many issues with this and went through a LOT of troubleshooting for this, but I finally found the answer by doing some hard research. (First link of my Google search, hehe)

Anyway, since this is a tutorial and web development website, I've decided to help any others who may be having this problem.

Create a .htaccess file and add the following to the bottom:
Code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^yoursite.com [nc]
rewriterule ^(.*)$ http://www.yoursite.com/$1 [r=301,nc]


There are two other options if the previous doesn't work:

Code:
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
RewriteRule (.*) http://www.yoursite.com/$1 [L,R=301]
And here's the last one:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com$
RewriteRule ^/?$ "http\:\/\/www\.yoursite\.com" [R=301,L]
I hope this helps anybody who may be having a similar issue. =)
TClaunch is offline   Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
development, forum, google, host

« - | - »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Powered by vBadvanced CMPS v3.2.1
All times are GMT -6. The time now is 01:57 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

©2009-2010 Waloosh.com. All rights Reserved.
Ad Management plugin by RedTyger