Poker Affiliate World
News Forums affiliate network Affiliate Tools Reviews

Go Back   Poker Affiliate World - Poker Affiliate Programs Discussion and Forums > Poker Affiliate Programs - Discussions for Poker Affiliates > Web Design Q&A

Web Design Q&A Use this forum to discuss any web design questions or issues you may be having

Reply
 
Social Bookmarking Thread Tools Display Modes
  #1  
Old 02-22-2007, 10:44 PM
the27offsuit.com the27offsuit.com is offline
Members
 
Join Date: Sep 2005
Posts: 1,311
Default 3 Home Pages Into 1 - Ht access code

Ok cant find it even thou i know we discussed it before /

I have versions of my homepage , the www version the non www. version and the /index version

Used 301 redirect ot make all non www go to www .

Problem im having is making the /index one go to the www version , every time i put the code into the ht access it makes the whole site go down , think i might have a mistake in the code . Heres the code i used anuone see a mistake in it? the part in bold works greayt its when i put in the last line to make /index go to just the www version

RewriteEngine on
RewriteCond %{HTTP_HOST} ^recentpoker\.com$
RewriteRule ^(.*)$
http://www.recentpoker.com/$1 [R=301,L]

RedirectMatch permanent ^/index.html$ http://www.recentpoker.com
__________________
Play Online Poker Now . There are a lot of Poker Rooms Accepting US Players and you can qualify for free to the 2008 WSOP . If your a casino player be sure to see the Casinos allowing USA players . Not from America then get the top PartyPoker Bonuscode , Finally if your a promoter see our Poker Affiliate Programs and Casino Affiliate Programs
Reply With Quote
  #2  
Old 02-22-2007, 10:53 PM
mikebrad mikebrad is offline
Members
 
Join Date: Nov 2005
Posts: 473
Default

First of all, it looks like one redirects to a .com/ and the other one to just a .com Since you are doing the redirect, you might as well be anal about it.

Code:
 
RedirectMatch 301 index.html http://www.recentpoker.com/
Should do the trick, unless there was a specific reason you didn't want to redirect 301.
Reply With Quote
  #3  
Old 02-22-2007, 11:23 PM
the27offsuit.com the27offsuit.com is offline
Members
 
Join Date: Sep 2005
Posts: 1,311
Default

thanks ill try it ,

Well tried it does not work as soon as i try to redirect the index to the regular the site does not load ,
__________________
Play Online Poker Now . There are a lot of Poker Rooms Accepting US Players and you can qualify for free to the 2008 WSOP . If your a casino player be sure to see the Casinos allowing USA players . Not from America then get the top PartyPoker Bonuscode , Finally if your a promoter see our Poker Affiliate Programs and Casino Affiliate Programs
Reply With Quote
  #4  
Old 02-23-2007, 10:51 AM
edmc edmc is offline
Banned
 
Join Date: Jul 2006
Posts: 1,089
Send a message via Yahoo to edmc
Default

silly question but are you sure you have saved it properly. I had the same problem & redid it & it was fine, or maybe there was a slight delay on the server. Dont know but it worked itself out
Reply With Quote
  #5  
Old 02-23-2007, 12:17 PM
mikebrad mikebrad is offline
Members
 
Join Date: Nov 2005
Posts: 473
Default

Ok, just to make sure you have the correct stuff in your .htaccess file, I've successfully accomplished what you are trying to do using this exact code in my htaccess:

Code:
 
Options +FollowSymLinks
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^recentpoker.com [NC] 
RewriteRule ^(.*)$ http://www.recentpoker.com/$1 [L,R=301]
RedirectMatch 301 recentpoker.html http://www.recentpoker.com/
Website is hosted by hostgator. Let me know if it works.
Reply With Quote
  #6  
Old 02-23-2007, 12:29 PM
the27offsuit.com the27offsuit.com is offline
Members
 
Join Date: Sep 2005
Posts: 1,311
Default

No same results , what im trying to get done is have the index page redirected to the .com page so that i do not have 2 home pages .

Ill just leave it as is
__________________
Play Online Poker Now . There are a lot of Poker Rooms Accepting US Players and you can qualify for free to the 2008 WSOP . If your a casino player be sure to see the Casinos allowing USA players . Not from America then get the top PartyPoker Bonuscode , Finally if your a promoter see our Poker Affiliate Programs and Casino Affiliate Programs
Reply With Quote
  #7  
Old 02-23-2007, 08:44 PM
mikebrad mikebrad is offline
Members
 
Join Date: Nov 2005
Posts: 473
Default

I'm sorry, I meant for that last line to read

Code:
 
RedirectMatch 301 index.html http://www.recentpoker.com/
Reply With Quote
  #8  
Old 02-24-2007, 01:10 AM
geoffvro's Avatar
geoffvro geoffvro is offline
Retired Billionaire
 
Join Date: Oct 2006
Posts: 105
Default

www.recentpoker is equal to index.html and vice versa. you can redirect other pages like poker.html or holdem.html to your index file, but you can't redirect your homepage back to itself. The server is stuck in an endless loop because the server is continuosly redirecting index.html to index.html

as always, just my two cents.
Reply With Quote
  #9  
Old 02-24-2007, 01:39 AM
the27offsuit.com the27offsuit.com is offline
Members
 
Join Date: Sep 2005
Posts: 1,311
Default

Quote:
Originally Posted by geoffvro
www.recentpoker is equal to index.html and vice versa. you can redirect other pages like poker.html or holdem.html to your index file, but you can't redirect your homepage back to itself. The server is stuck in an endless loop because the server is continuosly redirecting index.html to index.html

as always, just my two cents.
Thats exactly whats happening , if i try to redirect the index.html version of the homepage to the .com version . i thought it was possible and thought it would help with pr , but as you say when i try to it gets caught in a loop.
__________________
Play Online Poker Now . There are a lot of Poker Rooms Accepting US Players and you can qualify for free to the 2008 WSOP . If your a casino player be sure to see the Casinos allowing USA players . Not from America then get the top PartyPoker Bonuscode , Finally if your a promoter see our Poker Affiliate Programs and Casino Affiliate Programs
Reply With Quote
  #10  
Old 03-01-2007, 12:56 AM
ArthurD ArthurD is offline
Members
 
Join Date: Jun 2005
Posts: 80
Default

All that you need to do is make sure that http://ww.DOMAIN.com and http://DOMAIN.com both lead to the same page.

If you have no index file, the server will either show a 401 Forbidden error, or show a directory listing (per server settings). If you do have an index file then it is called instead of the 401 or the directory listing.

What you're trying to do is repetitive - You should not even need ANYTHING in your HTAccess if your server is properly configured to make your site work as desired.

If you still require assistance, I can help although I would have to charge as this is my profession. Feel free to contact me if you still need help...

AIM: ADanto6840
MSN:
Email:

-Arthur D'Antonio III
Web Developer
DAntonioDev.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sell one link for every pages of my website casinos-right The Poker Affiliate Exchange 0 02-26-2007 11:27 AM
PokerStars now has translated home pages Jeremy General Poker Affiliate Discussion 3 02-07-2007 01:22 AM
Canadians?? poker69 General Poker Affiliate Discussion 13 10-04-2006 10:33 PM
Google SiteMaps Jeremy Search Engine Optimization 6 07-13-2005 02:29 PM
Party Poker - Bonus Code Problem Poker Coach General Poker Affiliate Discussion 6 05-27-2005 07:55 PM


All times are GMT -5. The time now is 01:56 AM.


Poker Affiliate Programs Poker News

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0