![]() |
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 |
Nothing? Wump wow.
|
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.
|
i belive this should work...
Code:
RewriteEngine on |
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. |
Hmm it isn't working for me, bossku...any other ideas? It's really fucking pissing me off.
|
Quote:
If you fiddle with redirects you'll get fucked on by GG penalties. |
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 |
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 |
Don't redirect to index.php. Just put DirectoryIndex line in .htaccess
|
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. |
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 |
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/. |
All times are GMT -7. The time now is 09:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123