GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Best way to go from index.html to index.php? (https://gfy.com/showthread.php?t=574033)

QualityMpegs 02-09-2006 10:20 AM

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?

JD 02-09-2006 10:23 AM

are they actually linking to index.html?

edit: or just domain.com/

Lycanthrope 02-09-2006 10:24 AM

Just replace index.html w/ index.php and add this to .htaccess

RewriteBase /
RewriteRule ^index\.html$ index.php

Jace 02-09-2006 10:24 AM

that is the way I would do it, just a quick redirect to the php

JD 02-09-2006 10:28 AM

Quote:

Originally Posted by Lycanthrope
Just replace index.html w/ index.php and add this to .htaccess

RewriteBase /
RewriteRule ^index\.html$ index.php

:thumbsup

Hoarder 02-09-2006 10:28 AM

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.

QualityMpegs 02-09-2006 10:38 AM

Great, I'll do the htaccess...thanks guys!

MickeyG 02-09-2006 10:38 AM

modRewrite fo sure! :thumbsup


All times are GMT -7. The time now is 02:46 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123