Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-09-2006, 10:20 AM   #1
QualityMpegs
Confirmed User
 
Join Date: Feb 2003
Location: Orlando, Florida
Posts: 3,521
Best way to go from index.html to index.php?

I have had a domain.com for a long time with simply an index.html as the root page (domain.com/index.html) and I need to put up a domain.com/index.php page instead.

There are many sites linking to the index.html...what would be the best way to send everything to index.php instead? 301 redirect to maintain SE integrity?

This is what i was thinking:
http://www.domain.com/index.html would be a 301 redirect to index.php
so
http://www.domain.com/ would basically go to index.html which would redirect to index.php

Is this ok or is there a better idea?
__________________

PAYSITES CATEGORIZED AND THUMBNAILED BY NICHE - 69767780
QualityMpegs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:23 AM   #2
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
are they actually linking to index.html?

edit: or just domain.com/
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:24 AM   #3
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Just replace index.html w/ index.php and add this to .htaccess

RewriteBase /
RewriteRule ^index\.html$ index.php
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:24 AM   #4
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
that is the way I would do it, just a quick redirect to the php
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:28 AM   #5
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
Quote:
Originally Posted by Lycanthrope
Just replace index.html w/ index.php and add this to .htaccess

RewriteBase /
RewriteRule ^index\.html$ index.php
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:28 AM   #6
Hoarder
Confirmed User
 
Join Date: Jan 2006
Posts: 171
Quote:
Originally Posted by Lycanthrope
Just replace index.html w/ index.php and add this to .htaccess

RewriteBase /
RewriteRule ^index\.html$ index.php
That's usually what I'd do.

Or you could use a 301 redirect:
Code:
redirect 301 /index.html http[colon]//www[dot]domain[dot]com/index.php
you'll need to replace [colon] and [dot] obviously. They're just there because I have less than 30 posts.
__________________
Babedot Galleries | Teen Blog | ICQ: 72-391-203
Hoarder is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:38 AM   #7
QualityMpegs
Confirmed User
 
Join Date: Feb 2003
Location: Orlando, Florida
Posts: 3,521
Great, I'll do the htaccess...thanks guys!
__________________

PAYSITES CATEGORIZED AND THUMBNAILED BY NICHE - 69767780
QualityMpegs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:38 AM   #8
MickeyG
Confirmed User
 
Join Date: May 2004
Location: South Florida
Posts: 4,134
modRewrite fo sure!
MickeyG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.