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
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 01-29-2007, 03:07 PM   #1
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
301 Redirect - How To Get Rid of /index.php

So I've changed all my site's pages from .html to .php...but now when I go to my domain I can't just access blah.com, instead it displays blah.com/index.php. How can I change this to simply hide the /index.php and still have no interference/suspicion from the SE's? What need I add to the .htaccess?

Thanks,
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 04:04 PM   #2
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Nothing? Wump wow.
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 04:05 PM   #3
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
you have absolutely no reason to do so. if the SE spider is indexing blah.com/index.php then that's what it's indexing.
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 04:08 PM   #4
96ukssob
So Fucking Banananananas
 
96ukssob's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: If I was in your ass you'd know it
Posts: 12,991
i belive this should work...

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.URL\.com [NC]
RewriteRule (.*) http://www.URL.com/$1 [R=301,L]
you might have /index.php in your htaccess already
__________________
Email: Clicky on Me
96ukssob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 04:41 PM   #5
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Quote:
Originally Posted by who View Post
you have absolutely no reason to do so. if the SE spider is indexing blah.com/index.php then that's what it's indexing.
Well my domain (blah.com) is a PR3 while the /index.php is a PR0. I'm afraid my PR will decrease if I keep it the way it is...even though I have a 301 from the old index page to the new php one.

That, plus I think it looks better without the /index.php.

Thanks for the help. I'm about to give what you suggested a try, bossku69.
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:03 PM   #6
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Hmm it isn't working for me, bossku...any other ideas? It's really fucking pissing me off.
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:06 PM   #7
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
Quote:
Originally Posted by c-lo View Post
Well my domain (blah.com) is a PR3 while the /index.php is a PR0. I'm afraid my PR will decrease if I keep it the way it is...even though I have a 301 from the old index page to the new php one.

That, plus I think it looks better without the /index.php.

Thanks for the help. I'm about to give what you suggested a try, bossku69.
No no no man you're making a mistake. The PR for the default page will hold, it may take a week to change but it WILL change. THat's not a PR update it's just when GG switches your index listing to the index.php file.

If you fiddle with redirects you'll get fucked on by GG penalties.
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:15 PM   #8
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
I thought 301 redirects were SE friendly? I think I get what you're saying. It may take some time but the index.php page will eventually reflect the .com's PR?

Thanks again,
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:15 PM   #9
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
DirectoryIndex index.php index.html

will cause index.php to be the first page loaded, if it's not there there then index.html will be loaded.

index.php has PR0 because you have been linking to the default page (probably index.html). Changing the DirectoryIndex will allow index.php to assume the PR of the default page.

your-domain.com/ = PR
your-domain.com/index.php = No PR
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:21 PM   #10
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
Don't redirect to index.php. Just put DirectoryIndex line in .htaccess
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:22 PM   #11
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
One last thing, I have (in htaccess)
/index.html http://www.domain.com/index.php

Do I also need something such as
http://www.domain.com http://www.domain.com/index.php
to help redirect the search engines?

I ask because before I switched to .php pages, if you typed my domain with /index.html it would show PR0.
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:29 PM   #12
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Awesome, I think that fixed it, mike. Thanks to everyone for the help. Between this and .xxx I was about to kill someone.

later
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2007, 05:39 PM   #13
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
You're welcome.

your-domain.com/index.html and your-domain.com/index.php are each considered different than your-domain.com/ and won't have PR unless you link to them specifically.

your-domain.com is even different than your-domain.com/.
mikeyddddd 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



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.