| Web Design Q&A Use this forum to discuss any web design questions or issues you may be having |
 02-22-2007, 10:44 PM
|
|
Members
|
|
Join Date: Sep 2005
Posts: 1,311
|
|
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
|
 02-22-2007, 10:53 PM
|
|
Members
|
|
Join Date: Nov 2005
Posts: 473
|
|
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.
|
 02-22-2007, 11:23 PM
|
|
Members
|
|
Join Date: Sep 2005
Posts: 1,311
|
|
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
|
 02-23-2007, 10:51 AM
|
|
Banned
|
|
Join Date: Jul 2006
Posts: 1,089
|
|
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
|
 02-23-2007, 12:17 PM
|
|
Members
|
|
Join Date: Nov 2005
Posts: 473
|
|
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.
|
 02-23-2007, 12:29 PM
|
|
Members
|
|
Join Date: Sep 2005
Posts: 1,311
|
|
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
|
 02-23-2007, 08:44 PM
|
|
Members
|
|
Join Date: Nov 2005
Posts: 473
|
|
I'm sorry, I meant for that last line to read
Code:
RedirectMatch 301 index.html http://www.recentpoker.com/
|
 02-24-2007, 01:10 AM
|
|
Retired Billionaire
|
|
Join Date: Oct 2006
Posts: 105
|
|
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.
|
 02-24-2007, 01:39 AM
|
|
Members
|
|
Join Date: Sep 2005
Posts: 1,311
|
|
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
|
 03-01-2007, 12:56 AM
|
|
Members
|
|
Join Date: Jun 2005
Posts: 80
|
|
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
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| |
|
Thread Tools
|
|
|
|
Display Modes
|
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:56 AM.
|