![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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
__________________
![]() ![]() Traffic & Hardlink Trades | Sponsors | Resources The adult marketing network you can trust |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
|
Nothing? Wump wow.
__________________
![]() ![]() Traffic & Hardlink Trades | Sponsors | Resources The adult marketing network you can trust |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So Fucking Banananananas
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]
__________________
Email: Clicky on Me |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
|
Quote:
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.
__________________
![]() ![]() Traffic & Hardlink Trades | Sponsors | Resources The adult marketing network you can trust |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
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.
__________________
![]() ![]() Traffic & Hardlink Trades | Sponsors | Resources The adult marketing network you can trust |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
So Fucking Banned
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
|
Quote:
If you fiddle with redirects you'll get fucked on by GG penalties. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
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
__________________
![]() ![]() Traffic & Hardlink Trades | Sponsors | Resources The adult marketing network you can trust |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Viva la vulva!
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Viva la vulva!
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
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.
__________________
![]() ![]() Traffic & Hardlink Trades | Sponsors | Resources The adult marketing network you can trust |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
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
__________________
![]() ![]() Traffic & Hardlink Trades | Sponsors | Resources The adult marketing network you can trust |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Viva la vulva!
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/. |
![]() |
![]() ![]() ![]() ![]() ![]() |